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