KASKADE 7 development version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Kaskade::PolynomialModel Class Reference

#include <modelfunction.hh>

Detailed Description

Definition at line 56 of file modelfunction.hh.

Inheritance diagram for Kaskade::PolynomialModel:
Kaskade::ScalarModelFunction Kaskade::JModelLin Kaskade::TransformedPolynomialModel Kaskade::LogLogModel Kaskade::EtaModel Kaskade::JModel Kaskade::OmegaModel

Public Member Functions

 PolynomialModel (std::vector< double > defaults)
 
 PolynomialModel (int degree_, int maxels_=10000000)
 
virtual double getValue (double abscissa)
 Compute value of the model function at abscissa. More...
 
double getAbscissa (double value)
 Compute abscissa corresponding to a value. This is of course only possible for monotone functions. More...
 
std::vector< double > const & getCoefficients ()
 
virtual void update (double abscissa, double value)
 Add new value to the sample points, will be overwritten by the next update, until fixUpdate() is called. More...
 
virtual double getIntegral (double high, double low)
 Compute integral of the model function from low to high. More...
 
virtual void fixUpdate ()
 fix the last updated value and thus increase the number of sampling points More...
 
void setDataStart (int ds)
 

Protected Member Functions

virtual void computeCoefficients ()
 
virtual double getDataVal (int i)
 
virtual double getDataAbsc (int i)
 
virtual double getScaling (int i)
 

Protected Attributes

int degree
 
std::vector< double > coefficients
 
int maxels
 
LoggedQuantity< std::pair< double, double > > data
 
bool modified
 
int datastart
 

Constructor & Destructor Documentation

◆ PolynomialModel() [1/2]

Kaskade::PolynomialModel::PolynomialModel ( std::vector< double >  defaults)
inline

Definition at line 59 of file modelfunction.hh.

◆ PolynomialModel() [2/2]

Kaskade::PolynomialModel::PolynomialModel ( int  degree_,
int  maxels_ = 10000000 
)
inline

Definition at line 63 of file modelfunction.hh.

Member Function Documentation

◆ computeCoefficients()

virtual void Kaskade::PolynomialModel::computeCoefficients ( )
inlineprotectedvirtual

◆ fixUpdate()

virtual void Kaskade::ScalarModelFunction::fixUpdate ( )
inlinevirtualinherited

fix the last updated value and thus increase the number of sampling points

Definition at line 40 of file modelfunction.hh.

◆ getAbscissa()

double Kaskade::PolynomialModel::getAbscissa ( double  value)
inlinevirtual

Compute abscissa corresponding to a value. This is of course only possible for monotone functions.

Reimplemented from Kaskade::ScalarModelFunction.

Reimplemented in Kaskade::TransformedPolynomialModel.

Definition at line 80 of file modelfunction.hh.

◆ getCoefficients()

std::vector< double > const & Kaskade::PolynomialModel::getCoefficients ( )
inline

Definition at line 86 of file modelfunction.hh.

◆ getDataAbsc()

virtual double Kaskade::ScalarModelFunction::getDataAbsc ( int  i)
inlineprotectedvirtualinherited

Reimplemented in Kaskade::TransformedPolynomialModel, and Kaskade::JModel.

Definition at line 47 of file modelfunction.hh.

Referenced by computeCoefficients().

◆ getDataVal()

virtual double Kaskade::ScalarModelFunction::getDataVal ( int  i)
inlineprotectedvirtualinherited

Reimplemented in Kaskade::TransformedPolynomialModel, and Kaskade::JModel.

Definition at line 46 of file modelfunction.hh.

Referenced by computeCoefficients().

◆ getIntegral()

virtual double Kaskade::ScalarModelFunction::getIntegral ( double  high,
double  low 
)
inlinevirtualinherited

Compute integral of the model function from low to high.

Reimplemented in Kaskade::LogLogModel.

Definition at line 34 of file modelfunction.hh.

◆ getScaling()

virtual double Kaskade::ScalarModelFunction::getScaling ( int  i)
inlineprotectedvirtualinherited

Reimplemented in Kaskade::JModel.

Definition at line 48 of file modelfunction.hh.

Referenced by computeCoefficients().

◆ getValue()

virtual double Kaskade::PolynomialModel::getValue ( double  abscissa)
inlinevirtual

Compute value of the model function at abscissa.

Implements Kaskade::ScalarModelFunction.

Reimplemented in Kaskade::TransformedPolynomialModel.

Definition at line 67 of file modelfunction.hh.

Referenced by Kaskade::TransformedPolynomialModel::getValue().

◆ setDataStart()

void Kaskade::ScalarModelFunction::setDataStart ( int  ds)
inlineinherited

Definition at line 44 of file modelfunction.hh.

Referenced by Kaskade::JModel::JModel().

◆ update()

virtual void Kaskade::ScalarModelFunction::update ( double  abscissa,
double  value 
)
inlinevirtualinherited

Add new value to the sample points, will be overwritten by the next update, until fixUpdate() is called.

Reimplemented in Kaskade::JModel.

Definition at line 28 of file modelfunction.hh.

Member Data Documentation

◆ coefficients

std::vector<double> Kaskade::PolynomialModel::coefficients
protected

◆ data

LoggedQuantity<std::pair<double, double> > Kaskade::ScalarModelFunction::data
protectedinherited

◆ datastart

int Kaskade::ScalarModelFunction::datastart
protectedinherited

◆ degree

int Kaskade::PolynomialModel::degree
protected

Definition at line 118 of file modelfunction.hh.

Referenced by computeCoefficients(), and Kaskade::LogLogModel::getIntegral().

◆ maxels

int Kaskade::PolynomialModel::maxels
protected

Definition at line 120 of file modelfunction.hh.

Referenced by computeCoefficients().

◆ modified

bool Kaskade::ScalarModelFunction::modified
protectedinherited

The documentation for this class was generated from the following file: