59 if (fEqn != NULL)
delete fEqn;
60 if (fEqnDerivative != NULL)
delete fEqnDerivative;
69 return fEqn->Eval(arg);
78 return fEqnDerivative->Eval(arg);
88 if (fEqn == NULL) expr +=
"<null>";
89 else expr += fEqn->GetExpFormula();
93 if (fEqnDerivative == NULL) expr +=
"<null>";
94 else expr += fEqnDerivative->GetExpFormula();
104 fout <<
"double " << fncName <<
"(double x) const {" << std::endl;
105 fout <<
" // radial" << std::endl;
106 fout <<
" return exp(-x*x/2.0);" << std::endl;
107 fout <<
"}" << std::endl;
Radial basis activation function for ANN.
Double_t Eval(Double_t arg)
evaluate gaussian
virtual void MakeFunction(std::ostream &fout, const TString &fncName)
writes the sigmoid activation function source code
~TActivationRadial()
destructor
TActivationRadial()
constructor for gaussian with center 0, width 1
TString GetExpression()
get expressions for the gaussian and its derivatives
TFormula * fEqnDerivative
Double_t EvalDerivative(Double_t arg)
evaluate derivative
static const Int_t UNINITIALIZED