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