#include <ChiSqFCN.h>
Inheritance diagram for ChiSqFCN:
This class uses Chi-Square as the basis of minimization.
Definition at line 24 of file ChiSqFCN.h.
Public Member Functions | |
virtual void | calcAlphaBeta (std::vector< std::vector< double > > &alpha, std::vector< double > &beta)=0 |
virtual StatedFCN * | clone () const =0 |
Makes a copy of the derived class object. | |
virtual int | degreesOfFreedom () const =0 |
Returns the number of degrees of freedom. | |
virtual double | errorDef () const |
virtual void | getFreeParameters (std::vector< double > &parms) const |
Returns the free parameters in the vector parms. | |
virtual bool | needsIntegrated () const =0 |
Returns true if data points were integrated. | |
virtual double | objectiveValue () const =0 |
Returns the value of the objective function. | |
double | objectiveValue (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &e) const |
Returns value of the objective function. | |
virtual double | operator() (const std::vector< double > &parms) const |
Calculates and returns the objective function to be minimized. | |
virtual void | setDataSource (const DataSource *source)=0 |
Sets the data source for the objective function. | |
virtual void | setFreeParameters (const std::vector< double > &parms) |
Sets the free parameters from the vector parms. | |
void | setFunction (FunctionBase *function) |
Sets the model function. | |
virtual bool | setUseErrors (bool yes=true)=0 |
Sets the FCN to use errors on the data source values if it can. | |
virtual double | up () const |
Protected Attributes | |
FunctionBase * | m_function |
A pointer to the model function to be used in fitting. | |
bool | m_has_errors |
Error use flag. |
|
Implemented in NTupleFCN. |
|
Makes a copy of the derived class object.
Implemented in NTupleChiSqFCN, NTupleLikeliHoodFCN, and NTuplePearsonFCN. |
|
Returns the number of degrees of freedom.
Implemented in NTupleFCN. |
|
Reimplemented from FCNBase. Definition at line 22 of file ChiSqFCN.cxx. References up(). |
|
Returns the free parameters in the vector parms.
Definition at line 53 of file StatedFCN.cxx. References StatedFCN::m_function. Referenced by NTupleFCN::degreesOfFreedom(). |
|
Returns
Return Implemented in NTupleChiSqFCN, NTupleLikeliHoodFCN, and NTuplePearsonFCN. |
|
Returns the value of the objective function. Returns the value of the objective function for the current state of the function. The state of the function's parameters is set by operator(). Other states the function may have is set by calling member functions of the function directly. Implemented in NTupleChiSqFCN, NTupleLikeliHoodFCN, and NTuplePearsonFCN. Referenced by NTuplePearsonFCN::objectiveValue(), NTupleChiSqFCN::objectiveValue(), and StatedFCN::operator()(). |
|
Returns value of the objective function. Returns the value of the objective function for the current state of the function with the data set represented by the vectors.
Definition at line 36 of file ChiSqFCN.cxx. References StatedFCN::operator()(). |
|
Calculates and returns the objective function to be minimized. This objective function could be a Chi-Squared function or could be a LikleHood function. Implements FCNBase. Definition at line 67 of file StatedFCN.cxx. References StatedFCN::m_function, StatedFCN::objectiveValue(), and StatedFCN::setFreeParameters(). Referenced by NTupleFCN::calcAlphaBeta(), PearsonFCN::objectiveValue(), and objectiveValue(). |
|
Sets the data source for the objective function.
Implemented in NTupleFCN. |
|
Sets the free parameters from the vector parms.
Definition at line 60 of file StatedFCN.cxx. References StatedFCN::m_function. Referenced by StatedFCN::operator()(). |
|
Sets the model function. Sets the model function object to function. Definition at line 46 of file StatedFCN.cxx. References StatedFCN::m_function. |
|
Sets the FCN to use errors on the data source values if it can.
Implemented in NTupleFCN. |
|
Implements FCNBase. Definition at line 29 of file ChiSqFCN.cxx. Referenced by errorDef(). |
|
A pointer to the model function to be used in fitting. This object does not own the function. Definition at line 51 of file StatedFCN.h. Referenced by StatedFCN::getFreeParameters(), StatedFCN::operator()(), StatedFCN::setFreeParameters(), and StatedFCN::setFunction(). |
|
Error use flag.
A flag set to Definition at line 58 of file StatedFCN.h. |