23 using namespace hippodraw;
50 std::ostringstream message;
51 message <<
"chi^2 / dof = "
52 << std::setprecision(3)
56 view.
drawText ( message.str(), 5.0, 0.0,
m_size, 0,
'l',
't',
true,
int degreesOfFreedom() const
Returns the number of degrees of freedom in the fit.
The abstract base class for views.
The base class for the Projector hierarchy.
A PointRep that draws the Chi-squared of a function on a display.
hippodraw::ViewBase class interface
The base class for the point representation hierarchy.
A projector that plots one function.
Color m_color
The color of the representation.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
virtual void drawText(const std::string &s, float x, float y, float fontsize, float angle=0.0, char xp= 'l', char yp= 't', bool resize=false, const FontBase *font=0, const Color *color=0)=0
Draws a text string at a point in the view's coordinate system.
float m_size
The size of the representation.
FuncChiRep()
The default constructor.
A base class for representations that draws a value as text.
The namespace for conversion to string.
FuncChiRep class interface.
double objectiveValue() const
Returns the objective value (chi2 or likelihood) between the function and the data.
virtual void drawProjectedValues(ProjectorBase &projector, ViewBase &view)
Draws the values from the projector to the view.
hippodraw::FunctionProjector class interface