#include <LinInterpolatedTable1D.h>
|
const double * | data () const |
|
std::auto_ptr
< LinInterpolatedTable1D > | inverse (unsigned npoints, bool leftExtrapolationLinear, bool rightExtrapolationLinear) const |
|
bool | isMonotonous () const |
|
bool | leftExtrapolationLinear () const |
|
template<typename RealN > |
| LinInterpolatedTable1D (const RealN *data, unsigned npoints, double x_min, double x_max, bool leftExtrapolationLinear, bool rightExtrapolationLinear) |
|
template<typename RealN > |
| LinInterpolatedTable1D (const std::vector< std::pair< RealN, RealN > > &v, unsigned npoints, bool leftExtrapolationLinear, bool rightExtrapolationLinear) |
|
| LinInterpolatedTable1D (double c) |
|
unsigned | npoints () const |
|
bool | operator!= (const LinInterpolatedTable1D &r) const |
|
virtual double | operator() (const double &x) const |
|
bool | operator== (const LinInterpolatedTable1D &r) const |
|
bool | rightExtrapolationLinear () const |
|
double | xmax () const |
|
double | xmin () const |
|
virtual | ~LinInterpolatedTable1D () |
|
|
static double | interpolateSimple (const double x0, const double x1, const double y0, const double y1, const double x) |
|
Definition at line 24 of file LinInterpolatedTable1D.h.
template<typename RealN >
fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D |
( |
const RealN * |
data, |
|
|
unsigned |
npoints, |
|
|
double |
x_min, |
|
|
double |
x_max, |
|
|
bool |
leftExtrapolationLinear, |
|
|
bool |
rightExtrapolationLinear |
|
) |
| |
|
inline |
template<typename RealN >
fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D |
( |
const std::vector< std::pair< RealN, RealN > > & |
v, |
|
|
unsigned |
npoints, |
|
|
bool |
leftExtrapolationLinear, |
|
|
bool |
rightExtrapolationLinear |
|
) |
| |
fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D |
( |
double |
c | ) |
|
|
explicit |
Definition at line 4 of file LinInterpolatedTable1D.cc.
std::vector< double > data_
bool rightExtrapolationLinear_
bool leftExtrapolationLinear_
virtual fftjetcms::LinInterpolatedTable1D::~LinInterpolatedTable1D |
( |
| ) |
|
|
inlinevirtual |
const double* fftjetcms::LinInterpolatedTable1D::data |
( |
| ) |
const |
|
inline |
static double fftjetcms::LinInterpolatedTable1D::interpolateSimple |
( |
const double |
x0, |
|
|
const double |
x1, |
|
|
const double |
y0, |
|
|
const double |
y1, |
|
|
const double |
x |
|
) |
| |
|
inlinestaticprivate |
std::auto_ptr< LinInterpolatedTable1D > fftjetcms::LinInterpolatedTable1D::inverse |
( |
unsigned |
npoints, |
|
|
bool |
leftExtrapolationLinear, |
|
|
bool |
rightExtrapolationLinear |
|
) |
| const |
Definition at line 46 of file LinInterpolatedTable1D.cc.
References binwidth_, data_, i, isMonotonous(), LinInterpolatedTable1D(), npoints_, NULL, xmax_, and xmin_.
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_));
67 points.push_back(std::pair<double,double>(
data_[i],
xmin_+i*binwidth_));
68 points.push_back(std::pair<double,double>(
data_[0],
xmin_));
71 return std::auto_ptr<LinInterpolatedTable1D>(
std::vector< double > data_
bool leftExtrapolationLinear() const
bool isMonotonous() const
bool rightExtrapolationLinear() const
LinInterpolatedTable1D(const RealN *data, unsigned npoints, double x_min, double x_max, bool leftExtrapolationLinear, bool rightExtrapolationLinear)
bool fftjetcms::LinInterpolatedTable1D::isMonotonous |
( |
| ) |
const |
bool fftjetcms::LinInterpolatedTable1D::leftExtrapolationLinear |
( |
| ) |
const |
|
inline |
unsigned fftjetcms::LinInterpolatedTable1D::npoints |
( |
| ) |
const |
|
inline |
double fftjetcms::LinInterpolatedTable1D::operator() |
( |
const double & |
x | ) |
const |
|
virtual |
bool fftjetcms::LinInterpolatedTable1D::rightExtrapolationLinear |
( |
| ) |
const |
|
inline |
double fftjetcms::LinInterpolatedTable1D::xmax |
( |
| ) |
const |
|
inline |
double fftjetcms::LinInterpolatedTable1D::xmin |
( |
| ) |
const |
|
inline |
double fftjetcms::LinInterpolatedTable1D::binwidth_ |
|
private |
std::vector<double> fftjetcms::LinInterpolatedTable1D::data_ |
|
private |
bool fftjetcms::LinInterpolatedTable1D::leftExtrapolationLinear_ |
|
private |
bool fftjetcms::LinInterpolatedTable1D::monotonicityKnown_ |
|
mutableprivate |
bool fftjetcms::LinInterpolatedTable1D::monotonous_ |
|
mutableprivate |
unsigned fftjetcms::LinInterpolatedTable1D::npoints_ |
|
private |
bool fftjetcms::LinInterpolatedTable1D::rightExtrapolationLinear_ |
|
private |
double fftjetcms::LinInterpolatedTable1D::xmax_ |
|
private |
double fftjetcms::LinInterpolatedTable1D::xmin_ |
|
private |