#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 114 of file LinInterpolatedTable1D.h.
References Exception, and mitigatedMETSequence_cff::U.
Referenced by inverse().
fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D | ( | const std::vector< std::pair< RealN, RealN > > & | v, |
unsigned | npoints, | ||
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) |
Definition at line 138 of file LinInterpolatedTable1D.h.
References binwidth_, data_, Exception, plotBeamSpotDB::first, mps_fire::i, interpolateSimple(), npoints_, edm::second(), edm::shift, mitigatedMETSequence_cff::U, findQualityFiles::v, xmax_, and xmin_.
|
explicit |
Definition at line 4 of file LinInterpolatedTable1D.cc.
|
inlineoverride |
Definition at line 50 of file LinInterpolatedTable1D.h.
References operator()(), operator==(), and alignCSCRings::r.
|
inline |
Definition at line 68 of file LinInterpolatedTable1D.h.
References data_, inverse(), and isMonotonous().
|
inlinestaticprivate |
std::unique_ptr< LinInterpolatedTable1D > fftjetcms::LinInterpolatedTable1D::inverse | ( | unsigned | npoints, |
bool | leftExtrapolationLinear, | ||
bool | rightExtrapolationLinear | ||
) | const |
Definition at line 46 of file LinInterpolatedTable1D.cc.
References binwidth_, data_, mps_fire::i, isMonotonous(), LinInterpolatedTable1D(), npoints_, hiPixelPairStep_cff::points, mitigatedMETSequence_cff::U, xmax_, and xmin_.
Referenced by data().
bool fftjetcms::LinInterpolatedTable1D::isMonotonous | ( | ) | const |
Definition at line 29 of file LinInterpolatedTable1D.cc.
References data_, delta, mps_fire::i, monotonicityKnown_, monotonous_, npoints_, and mitigatedMETSequence_cff::U.
Referenced by data(), and inverse().
|
inline |
Definition at line 64 of file LinInterpolatedTable1D.h.
References leftExtrapolationLinear_.
|
inline |
Definition at line 63 of file LinInterpolatedTable1D.h.
References npoints_.
|
inline |
|
override |
Definition at line 77 of file LinInterpolatedTable1D.cc.
References binwidth_, data_, delta, leftExtrapolationLinear_, npoints_, rightExtrapolationLinear_, mitigatedMETSequence_cff::U, xmax_, and xmin_.
Referenced by ~LinInterpolatedTable1D().
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_.
Referenced by ~LinInterpolatedTable1D().
|
inline |
Definition at line 66 of file LinInterpolatedTable1D.h.
References rightExtrapolationLinear_.
|
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 101 of file LinInterpolatedTable1D.h.
Referenced by inverse(), LinInterpolatedTable1D(), operator()(), and operator==().
|
private |
Definition at line 98 of file LinInterpolatedTable1D.h.
Referenced by data(), inverse(), isMonotonous(), LinInterpolatedTable1D(), operator()(), and operator==().
|
private |
Definition at line 103 of file LinInterpolatedTable1D.h.
Referenced by leftExtrapolationLinear(), operator()(), and operator==().
|
mutableprivate |
Definition at line 106 of file LinInterpolatedTable1D.h.
Referenced by isMonotonous().
|
mutableprivate |
Definition at line 105 of file LinInterpolatedTable1D.h.
Referenced by isMonotonous().
|
private |
Definition at line 102 of file LinInterpolatedTable1D.h.
Referenced by inverse(), isMonotonous(), LinInterpolatedTable1D(), npoints(), operator()(), and operator==().
|
private |
Definition at line 104 of file LinInterpolatedTable1D.h.
Referenced by operator()(), operator==(), and rightExtrapolationLinear().
|
private |
Definition at line 100 of file LinInterpolatedTable1D.h.
Referenced by inverse(), LinInterpolatedTable1D(), operator()(), operator==(), and xmax().
|
private |
Definition at line 99 of file LinInterpolatedTable1D.h.
Referenced by inverse(), LinInterpolatedTable1D(), operator()(), operator==(), and xmin().