62 TString expr =
"TMath::Exp(-x^2/2.0)\t\t-x*TMath::Exp(-x^2/2.0)";
71 fout <<
"double " << fncName <<
"(double x) const {" << std::endl;
72 fout <<
" // radial" << std::endl;
73 fout <<
" return exp(-x*x/2.0);" << std::endl;
74 fout <<
"}" << std::endl;
Radial basis activation function for ANN.
virtual void MakeFunction(std::ostream &fout, const TString &fncName)
writes the sigmoid activation function source code
Double_t Eval(Double_t arg)
evaluate gaussian
Double_t EvalDerivative(Double_t arg)
evaluate derivative
TString GetExpression()
get expressions for the gaussian and its derivatives