5#ifndef BALL_MATHS_PIECEWISEFUNCTION_H
6#define BALL_MATHS_PIECEWISEFUNCTION_H
129 virtual
double operator () (
double x) const;
184 void calculateRange();
void set(const std::vector< Interval > &intervals, const std::vector< Coefficients > &coeffs)
std::vector< Interval > intervals_
const Interval & getRange() const
void setCoefficients(const vector< Coefficients > &coefficients)
Position getIntervalIndex(double x) const
std::vector< Coefficients > coefficients_
virtual bool isValid() const
const Interval & getInterval(double x) const
const std::vector< Coefficients > & getCoefficients() const
void setIntervals(const std::vector< Interval > &intervals)
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
const std::vector< Interval > & getIntervals() const
bool isInRange(double x) const
#define BALL_CREATE(name)
std::vector< double > Coefficients
std::pair< double, double > Interval