10 leftExtrapolationLinear_(
false),
11 rightExtrapolationLinear_(
false),
13 monotonicityKnown_(
true)
37 const double sg = delta > 0.0 ? 1.0 : -1.0;
39 if ((data_[
i] - data_[
i-1])*sg <= 0.0)
47 const unsigned npoints,
const bool leftExtrapolationLinear,
48 const bool rightExtrapolationLinear)
const
51 return std::auto_ptr<LinInterpolatedTable1D>(
NULL);
53 std::vector<std::pair<double,double> > points;
58 points.push_back(std::pair<double,double>(
data_[0],
xmin_));
68 points.push_back(std::pair<double,double>(
data_[0],
xmin_));
71 return std::auto_ptr<LinInterpolatedTable1D>(
73 leftExtrapolationLinear,
74 rightExtrapolationLinear));
std::vector< double > data_
bool operator==(const LinInterpolatedTable1D &r) const
bool isMonotonous() const
bool rightExtrapolationLinear_
virtual double operator()(const double &x) const
std::auto_ptr< LinInterpolatedTable1D > inverse(unsigned npoints, bool leftExtrapolationLinear, bool rightExtrapolationLinear) const
volatile std::atomic< bool > shutdown_flag false
LinInterpolatedTable1D(const RealN *data, unsigned npoints, double x_min, double x_max, bool leftExtrapolationLinear, bool rightExtrapolationLinear)
bool leftExtrapolationLinear_