#include <AltNeuralNetFunc.h>
Public Member Functions | |
| AltNeuralNetFunc () | |
| AltNeuralNetFunc (const char *name, const char *title) | |
| ~AltNeuralNetFunc () | |
| double | run (double(*neural_net)(double *), AltNeuralNetI *pattern) |
Private Attributes | |
| std::string | fTitle |
|
|
Definition at line 33 of file AltNeuralNetFunc.cxx. References MSG. 00033 :
00034 TNamed()
00035 {
00036 MSG("AltNeuralNet",Msg::kDebug)
00037 << "Begin of AltNeuralNetFunc::AltNeuralNetFunc() ctor" << endl;
00038 LEA_CTOR;
00039 }
//_______________________________________________________________________________
|
|
||||||||||||
|
Definition at line 41 of file AltNeuralNetFunc.cxx. 00041 :
00042 TNamed(name, title)
00043 {
00044 MSG("AltNeuralNet",Msg::kDebug)
00045 << "Begin of AltNeuralNetFunc::AltNeuralNetFunc("
00046 << "const char *, const char * ) ctor" << endl;
00047
00048 fTitle = std::string(title);
00049
00050 LEA_CTOR;
00051 }
//_______________________________________________________________________________
|
|
|
Definition at line 53 of file AltNeuralNetFunc.cxx. References MSG. 00054 {
00055 MSG("AltNeuralNet",Msg::kDebug)
00056 << "Begin of AltNeuralNetFunc::~AltNeuralNetFunc() dtor" << endl;
00057
00058 LEA_DTOR;
00059 }
|
|
||||||||||||
|
Definition at line 61 of file AltNeuralNetFunc.cxx. References AltNeuralNetI::copyInputsToArray(), and AltNeuralNetI::getNumberOfInputs(). 00063 {
00064 float network_out = -1;
00065
00066 const int kInputs = pattern->getNumberOfInputs();
00067 float * inputs = new float[kInputs];
00068
00069 pattern->copyInputsToArray(inputs);
00070
00071 #ifndef __CINT__
00072 G__CallFunc func;
00073 switch(G__isinterpretedp2f( (void*)neural_net )) {
00074
00075 //using interface method
00076 case G__COMPILEDINTERFACEMETHOD:
00077 func.SetFunc( (G__InterfaceMethod)neural_net );
00078 func.SetArg((long)inputs);
00079 network_out = func.ExecDouble( (void*)NULL );
00080 break;
00081 default:
00082 exit(1);
00083 }
00084 #else
00085 network_out = neural_net(inputs);
00086 #endif
00087
00088 return network_out;
00089 }
|
|
|
Definition at line 38 of file AltNeuralNetFunc.h. Referenced by AltNeuralNetFunc(). |
1.3.9.1