#include <LinInterpolatedTable1D.h>
Public Member Functions | |
const double * | data () const |
std::unique_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 |
double | operator() (const double &x) const override |
bool | operator== (const LinInterpolatedTable1D &r) const |
bool | rightExtrapolationLinear () const |
double | xmax () const |
double | xmin () const |
~LinInterpolatedTable1D () override | |
Static Private Member Functions | |
static double | interpolateSimple (const double x0, const double x1, const double y0, const double y1, const double x) |
Private Attributes | |
double | binwidth_ |
std::vector< double > | data_ |
bool | leftExtrapolationLinear_ |
bool | monotonicityKnown_ |
bool | monotonous_ |
unsigned | npoints_ |
bool | rightExtrapolationLinear_ |
double | xmax_ |
double | xmin_ |
Definition at line 24 of file LinInterpolatedTable1D.h.
|
inline |
Definition at line 108 of file LinInterpolatedTable1D.h.
References data(), Exception, npoints(), and mitigatedMETSequence_cff::U.
fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D | ( | const std::vector< std::pair< RealN, RealN > > & | v, |
unsigned | npoints, | ||
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) |
Definition at line 130 of file LinInterpolatedTable1D.h.
References binwidth_, data_, Exception, dqmdumpme::first, mps_fire::i, interpolateSimple(), leftExtrapolationLinear(), npoints(), npoints_, rightExtrapolationLinear(), edm::second(), edm::shift, mitigatedMETSequence_cff::U, findQualityFiles::v, x, xmax_, and xmin_.
|
explicit |
Definition at line 6 of file LinInterpolatedTable1D.cc.
|
inlineoverride |
Definition at line 51 of file LinInterpolatedTable1D.h.
|
inline |
Definition at line 66 of file LinInterpolatedTable1D.h.
References data_.
Referenced by LinInterpolatedTable1D().
|
inlinestaticprivate |
Definition at line 88 of file LinInterpolatedTable1D.h.
References x, and testProducerWithPsetDescEmpty_cfi::y1.
Referenced by LinInterpolatedTable1D().
std::unique_ptr< LinInterpolatedTable1D > fftjetcms::LinInterpolatedTable1D::inverse | ( | unsigned | npoints, |
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) | const |
Definition at line 38 of file LinInterpolatedTable1D.cc.
References binwidth_, data_, mps_fire::i, isMonotonous(), leftExtrapolationLinear(), npoints(), npoints_, rightExtrapolationLinear(), mitigatedMETSequence_cff::U, xmax_, and xmin_.
bool fftjetcms::LinInterpolatedTable1D::isMonotonous | ( | ) | const |
Definition at line 23 of file LinInterpolatedTable1D.cc.
References data_, dumpMFGeometry_cfg::delta, mps_fire::i, monotonicityKnown_, monotonous_, npoints_, and mitigatedMETSequence_cff::U.
Referenced by inverse().
|
inline |
Definition at line 64 of file LinInterpolatedTable1D.h.
References leftExtrapolationLinear_.
Referenced by inverse(), and LinInterpolatedTable1D().
|
inline |
Definition at line 63 of file LinInterpolatedTable1D.h.
References npoints_.
Referenced by inverse(), and LinInterpolatedTable1D().
|
inline |
Definition at line 58 of file LinInterpolatedTable1D.h.
|
override |
Definition at line 62 of file LinInterpolatedTable1D.cc.
References binwidth_, data_, dumpMFGeometry_cfg::delta, leftExtrapolationLinear_, npoints_, rightExtrapolationLinear_, mitigatedMETSequence_cff::U, x, xmax_, and xmin_.
bool fftjetcms::LinInterpolatedTable1D::operator== | ( | const LinInterpolatedTable1D & | r | ) | const |
Definition at line 17 of file LinInterpolatedTable1D.cc.
References binwidth_, data_, leftExtrapolationLinear_, npoints_, rightExtrapolationLinear_, xmax_, and xmin_.
|
inline |
Definition at line 65 of file LinInterpolatedTable1D.h.
References rightExtrapolationLinear_.
Referenced by inverse(), and LinInterpolatedTable1D().
|
inline |
Definition at line 62 of file LinInterpolatedTable1D.h.
References xmax_.
Referenced by svgfig.XAxis::__repr__().
|
inline |
Definition at line 61 of file LinInterpolatedTable1D.h.
References xmin_.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), and svgfig.Axes::SVG().
|
private |
Definition at line 96 of file LinInterpolatedTable1D.h.
Referenced by inverse(), LinInterpolatedTable1D(), operator()(), and operator==().
|
private |
Definition at line 93 of file LinInterpolatedTable1D.h.
Referenced by data(), inverse(), isMonotonous(), LinInterpolatedTable1D(), operator()(), and operator==().
|
private |
Definition at line 98 of file LinInterpolatedTable1D.h.
Referenced by leftExtrapolationLinear(), operator()(), and operator==().
|
mutableprivate |
Definition at line 101 of file LinInterpolatedTable1D.h.
Referenced by isMonotonous().
|
mutableprivate |
Definition at line 100 of file LinInterpolatedTable1D.h.
Referenced by isMonotonous().
|
private |
Definition at line 97 of file LinInterpolatedTable1D.h.
Referenced by inverse(), isMonotonous(), LinInterpolatedTable1D(), npoints(), operator()(), and operator==().
|
private |
Definition at line 99 of file LinInterpolatedTable1D.h.
Referenced by operator()(), operator==(), and rightExtrapolationLinear().
|
private |
Definition at line 95 of file LinInterpolatedTable1D.h.
Referenced by inverse(), LinInterpolatedTable1D(), operator()(), operator==(), and xmax().
|
private |
Definition at line 94 of file LinInterpolatedTable1D.h.
Referenced by inverse(), LinInterpolatedTable1D(), operator()(), operator==(), and xmin().