Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:48:23

0001 /*
0002  * TrainingFunctionChi2.h
0003  *
0004  *  Created on: Apr 23, 2016
0005  *      Author: Pawel Sznajder
0006  */
0007 
0008 #ifndef TRAININGFUNCTIONCHI2_H_
0009 #define TRAININGFUNCTIONCHI2_H_
0010 
0011 #include "../beans/Data.h"
0012 #include "TrainingFunction.h"
0013 
0014 namespace NumA {
0015 
0016 class TrainingFunctionChi2: public TrainingFunction {
0017 
0018 public:
0019 
0020     static const unsigned int classId;
0021 
0022     TrainingFunctionChi2();
0023     virtual ~TrainingFunctionChi2();
0024     virtual TrainingFunctionChi2* clone() const;
0025 
0026     virtual double evaluate(const Data& output,
0027             const Data& outputReference) const;
0028     virtual double partialDerivative(double output,
0029             double outputReference) const;
0030 
0031 protected:
0032 
0033     TrainingFunctionChi2(const TrainingFunctionChi2& other);
0034 };
0035 
0036 }
0037 
0038 #endif /* TRAININGFUNCTIONCHI2_H_ */