#include <Weight.h>
List of all members.
Detailed Description
Definition at line 14 of file Weight.h.
Constructor & Destructor Documentation
Exhume::Weight::Weight |
( |
| ) |
[inline] |
virtual Exhume::Weight::~Weight |
( |
| ) |
[inline, virtual] |
Member Function Documentation
void Exhume::Weight::AddPoint |
( |
const double & |
, |
|
|
const double & |
|
|
) |
| [protected] |
double Exhume::Weight::GetFunc |
( |
const double & |
xx_ | ) |
[inline, protected] |
Definition at line 36 of file Weight.h.
References FuncMap, Max_, and WeightFunc().
{
if(xx_ > Max_){
return(WeightFunc(xx_) );
}
std::map<double, double>::iterator high_, low_;
high_ = FuncMap.upper_bound(xx_);
low_ = high_;
low_--;
return( low_->second +
(high_->second - low_->second) * (xx_ - low_->first)/
(high_->first - low_->first));
};
std::map<double, double> Exhume::Weight::GetFuncMap |
( |
| ) |
[inline] |
std::map<double, double> Exhume::Weight::GetLineShape |
( |
| ) |
[inline] |
double Exhume::Weight::GetTotalIntegral |
( |
| ) |
[inline] |
double Exhume::Weight::GetValue |
( |
const double & |
xx_ | ) |
[inline, protected] |
Definition at line 51 of file Weight.h.
References LineShape.
{
std::map<double, double>::iterator high_, low_;
high_ = LineShape.upper_bound(xx_);
if(high_==LineShape.end())high_--;
low_ = high_;
low_--;
return( low_->second +
(high_->second - low_->second) * (xx_ - low_->first)/
(high_->first - low_->first));
};
virtual double Exhume::Weight::WeightFunc |
( |
const double & |
| ) |
[protected, pure virtual] |
void Exhume::Weight::WeightInit |
( |
const double & |
, |
|
|
const double & |
|
|
) |
| [protected] |
Member Data Documentation