#include <HcalCubicInterpolator.h>
|
typedef std::tuple< double, double, double > | Triple |
|
|
template<class Archive > |
void | serialize (Archive &ar, unsigned) |
|
Definition at line 17 of file HcalCubicInterpolator.h.
◆ Triple
◆ HcalCubicInterpolator() [1/2]
HcalCubicInterpolator::HcalCubicInterpolator |
( |
| ) |
|
◆ HcalCubicInterpolator() [2/2]
HcalCubicInterpolator::HcalCubicInterpolator |
( |
const std::vector< Triple > & |
points | ) |
|
|
explicit |
Definition at line 8 of file HcalCubicInterpolator.cc.
References abscissae_, derivatives_, Exception, mps_fire::i, HLT_FULL_cff::points, jetUpdater_cfi::sort, submitPVValidationJobs::t, createJobs::tmp, and values_.
9 const std::size_t sz =
points.size();
16 for (std::size_t
i = 0;
i < sz; ++
i) {
22 const std::size_t szm1 = sz - 1;
23 for (std::size_t
i = 0;
i < szm1; ++
i)
26 "In HcalCubicInterpolator constructor:" 27 " abscissae must not coincide");
std::tuple< double, double, double > Triple
std::vector< double > abscissae_
std::vector< double > values_
std::vector< double > derivatives_
◆ ~HcalCubicInterpolator()
HcalCubicInterpolator::~HcalCubicInterpolator |
( |
| ) |
|
|
inlineoverride |
◆ approximateInverse()
Definition at line 74 of file HcalCubicInterpolator.cc.
References abscissae_, derivatives_, Exception, HcalCubicInterpolator(), mps_fire::i, AbsHcalFunctor::isStrictlyDecreasing(), AbsHcalFunctor::isStrictlyIncreasing(), HLT_FULL_cff::points, and values_.
75 const bool monotonous =
79 "In HcalCubicInterpolator::inverse:" 80 " can't invert non-monotonous functor");
82 std::vector<Triple>
points;
84 for (std::size_t
i = 0;
i < sz; ++
i) {
88 "In HcalCubicInterpolator::inverse:" 89 " can't invert functor with derivatives of 0");
std::tuple< double, double, double > Triple
std::vector< double > abscissae_
static bool isStrictlyIncreasing(Iter begin, Iter const end)
static bool isStrictlyDecreasing(Iter begin, Iter const end)
std::vector< double > values_
std::vector< double > derivatives_
◆ isEqual()
bool HcalCubicInterpolator::isEqual |
( |
const AbsHcalFunctor & |
other | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ operator()()
double HcalCubicInterpolator::operator() |
( |
double |
x | ) |
const |
|
overridevirtual |
◆ serialize()
template<class Archive >
void HcalCubicInterpolator::serialize |
( |
Archive & |
ar, |
|
|
unsigned |
|
|
) |
| |
|
inlineprivate |
◆ xmax()
double HcalCubicInterpolator::xmax |
( |
| ) |
const |
|
overridevirtual |
◆ xmin()
double HcalCubicInterpolator::xmin |
( |
| ) |
const |
|
overridevirtual |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ abscissae_
std::vector<double> HcalCubicInterpolator::abscissae_ |
|
private |
◆ derivatives_
std::vector<double> HcalCubicInterpolator::derivatives_ |
|
private |
◆ values_
std::vector<double> HcalCubicInterpolator::values_ |
|
private |