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,
double objectiveValue() const
Returns the objective value (chi2 or likelihood) between the function and the data.
int degreesOfFreedom() const
Returns the number of degrees of freedom in the fit.
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.
A PointRep that draws the Chi-squared of a function on a display.
FuncChiRep()
The default constructor.
hippodraw::ViewBase class interface
The namespace for conversion to string.
The base class for the point representation hierarchy.
FuncChiRep class interface.
virtual void drawProjectedValues(ProjectorBase &projector, ViewBase &view)
Draws the values from the projector to the view.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
Color m_color
The color of the representation.
The base class for the Projector hierarchy.
The abstract base class for views.
A base class for representations that draws a value as text.
hippodraw::FunctionProjector class interface
float m_size
The size of the representation.
A projector that plots one function.