#include <Weight.h>
Definition at line 14 of file Weight.h.
Exhume::Weight::Weight |
( |
| ) |
|
|
inline |
virtual Exhume::Weight::~Weight |
( |
| ) |
|
|
inlinevirtual |
void Exhume::Weight::AddPoint |
( |
const double & |
, |
|
|
const double & |
|
|
) |
| |
|
protected |
double Exhume::Weight::GetFunc |
( |
const double & |
xx_ | ) |
|
|
inlineprotected |
Definition at line 36 of file Weight.h.
References FuncMap, Max_, and WeightFunc().
41 std::map<double, double>::iterator high_, low_;
42 high_ =
FuncMap.upper_bound(xx_);
46 return( low_->second +
47 (high_->second - low_->second) * (xx_ - low_->first)/
48 (high_->first - low_->first));
std::map< double, double > FuncMap
virtual double WeightFunc(const double &)=0
std::map<double, double> Exhume::Weight::GetFuncMap |
( |
| ) |
|
|
inline |
Definition at line 20 of file Weight.h.
References FuncMap.
std::map< double, double > FuncMap
std::map<double, double> Exhume::Weight::GetLineShape |
( |
| ) |
|
|
inline |
Definition at line 27 of file Weight.h.
References LineShape.
std::map< double, double > LineShape
double Exhume::Weight::GetTotalIntegral |
( |
| ) |
|
|
inline |
double Exhume::Weight::GetValue |
( |
const double & |
xx_ | ) |
|
|
inlineprotected |
Definition at line 51 of file Weight.h.
References LineShape.
53 std::map<double, double>::iterator high_, low_;
61 return( low_->second +
62 (high_->second - low_->second) * (xx_ - low_->first)/
63 (high_->first - low_->first));
std::map< double, double > LineShape
virtual double Exhume::Weight::WeightFunc |
( |
const double & |
| ) |
|
|
protectedpure virtual |
void Exhume::Weight::WeightInit |
( |
const double & |
, |
|
|
const double & |
|
|
) |
| |
|
protected |
std::map<double, double> Exhume::Weight::FuncMap |
|
private |
std::map<double, double> Exhume::Weight::LineShape |
|
private |
double Exhume::Weight::Max_ |
|
protected |
unsigned int Exhume::Weight::NPoints |
|
private |
double Exhume::Weight::TotalIntegral |
|
protected |