14 #ifndef _FunctionProjector_H_
15 #define _FunctionProjector_H_
73 virtual void addPointReps ();
93 virtual bool isEmpty ()
const;
97 double objectiveValue ()
const;
101 const std::vector < std::vector < double > > & covariance ( )
const;
105 void calcPrincipleErrors()
const;
108 const std::vector< double > & principleErrors ()
const;
114 void setPrincipleErrors ( std::vector < double > ::const_iterator first,
115 std::vector < double > ::const_iterator last );
119 void setFitter (
Fitter * fitter );
123 Fitter * getFitter ( )
const;
126 int degreesOfFreedom ()
const;
132 bool hasSavedParameters ()
const;
135 void saveParameters ();
139 void restoreParameters ();
149 bool fitFunction ( );
151 virtual Range valueRange()
const;
153 virtual const std::string & getTitle()
const;
161 virtual const std::string & getXLabel()
const;
168 virtual const std::string & getYLabel (
bool density =
false )
const;
173 int getNumberOfEntries ()
const;
176 int getUnderflow ()
const;
179 int getOverflow ()
const;
185 const std::string & getZLabel()
const;
192 void setParameters(
const std::vector<double> ¶ms );
196 virtual void setFitCut (
TupleCut * cut );
200 virtual void setFitRange (
bool yes =
true );
206 virtual void fillProjectedValues (
DataSource * ntuple,
207 bool in_range =
false )
const;
213 #endif // _FunctionProjector_H_
#define MDL_HIPPOPLOT_API
ProjectorBase * m_target
The ProjectorBase object containing the data points for the function and fitter.
std::vector< double > m_principleErrors
The principle errors of the errors associated with the parameters of the function.
The class expresses a cut on a DataSource, i.e.
The base class for fitters.
std::vector< double > m_save_parms
A vector used to save parameters so that they can be restored.
std::vector< std::vector< double > > m_covariance
The error covariance matrix of the errors associated with the parameters of the function.
numeric::array clone(numeric::array arr)
static std::string s_x_label
An X label that might be used.
hippodraw::ProjectorBase class interface.
std::string m_z_label
Dummy member so getZLabel member can return reference.
The base class for the Projector hierarchy.
A function that can be added to a DataRep and used in a fitter.
Fitter * m_fitter
A fitter object for the function.
Expresses a range of values.
A projector that plots one function.
FunctionBase * m_function
The list of function objects to be projected.
Base class for DataSource.