22 namespace dp = hippodraw::DataPoint3DTuple;
38 vector < unsigned int >
shape ( 3 );
61 double x = x_range.
low () + 0.5 * dx;
64 double y_low = y_range.
low () + 0.5 * dy;
66 vector < double > coord ( 2 );
72 for (
unsigned int i = 0; i <
m_steps; i++, x += dx ) {
75 for (
unsigned int j = 0; j <
m_steps; j++, y += dy ) {
77 double value =
function -> operator() ( coord );
The abstract base class for views.
Expresses a range of values.
hippodraw::FunctionBase class interface
hippodraw::DataPointTuple namespace interface
virtual void drawProjectedValues(const DataSource *ntuple, TransformBase *transform, ViewBase *view)
Draws the projected values.
BinToBlack class interface.
unsigned int m_steps
The number of steps taken to calculate function values.
A PointRep class that draws a contour lines.
std::vector< intptr_t > shape(numeric::array arr)
NTuple * m_ntuple
The table of function values from which to build the contours.
A DataSource class implemented with std::vector<double> to store the column data. ...
~ContourFunctionRep()
The destructor.
ContourFunctionRep()
The default constructor.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
hippodraw::NTuple class interface.
double length() const
Returns the length of the range object.
double low() const
Returns the minimum of the range object.
error on X or half bin width
The class derived from the BinToColor class.
ContourFunctionRep class interface.
void drawProjectedValues(const Range &x_range, const Range &y_range, const FunctionBase *function, TransformBase *transform, ViewBase *view)
Draws a two dimension; function as contour lines.
A function that can be added to a DataRep and used in a fitter.
A transform that transforms coordinates from one coordinate system to another.