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

Polynomial model in a loglog scale. More...

#include <modelfunction.hh>

Detailed Description

Polynomial model in a loglog scale.

Definition at line 148 of file modelfunction.hh.

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

Public Member Functions

 LogLogModel (std::vector< double > defaults)
 
 LogLogModel (int degree_)
 
virtual double getIntegral (double high, double low)
 Compute integral of the model function from low to high. More...
 
virtual double getValue (double abscissa)
 Compute value of the model function at abscissa. More...
 
virtual 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 void fixUpdate ()
 fix the last updated value and thus increase the number of sampling points More...
 
void setDataStart (int ds)
 

Protected Member Functions

virtual double abscFwd (double a)
 
virtual double abscBwd (double a)
 
virtual double valFwd (double v)
 
virtual double valBwd (double v)
 
virtual double getDataVal (int i)
 
virtual double getDataAbsc (int i)
 
virtual void computeCoefficients ()
 
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

◆ LogLogModel() [1/2]

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

Definition at line 151 of file modelfunction.hh.

◆ LogLogModel() [2/2]

Kaskade::LogLogModel::LogLogModel ( int  degree_)
inline

Definition at line 154 of file modelfunction.hh.

Member Function Documentation

◆ abscBwd()

virtual double Kaskade::LogLogModel::abscBwd ( double  a)
inlineprotectedvirtual

Reimplemented from Kaskade::TransformedPolynomialModel.

Definition at line 170 of file modelfunction.hh.

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

◆ abscFwd()

virtual double Kaskade::LogLogModel::abscFwd ( double  a)
inlineprotectedvirtual

Reimplemented from Kaskade::TransformedPolynomialModel.

Definition at line 169 of file modelfunction.hh.

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

◆ computeCoefficients()

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

◆ 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()

virtual double Kaskade::TransformedPolynomialModel::getAbscissa ( double  value)
inlinevirtualinherited

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

Reimplemented from Kaskade::PolynomialModel.

Definition at line 136 of file modelfunction.hh.

◆ getCoefficients()

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

Definition at line 86 of file modelfunction.hh.

◆ getDataAbsc()

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

Reimplemented from Kaskade::ScalarModelFunction.

Reimplemented in Kaskade::JModel.

Definition at line 143 of file modelfunction.hh.

◆ getDataVal()

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

Reimplemented from Kaskade::ScalarModelFunction.

Reimplemented in Kaskade::JModel.

Definition at line 142 of file modelfunction.hh.

◆ getIntegral()

virtual double Kaskade::LogLogModel::getIntegral ( double  high,
double  low 
)
inlinevirtual

Compute integral of the model function from low to high.

Reimplemented from Kaskade::ScalarModelFunction.

Definition at line 158 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 Kaskade::PolynomialModel::computeCoefficients().

◆ getValue()

virtual double Kaskade::TransformedPolynomialModel::getValue ( double  abscissa)
inlinevirtualinherited

Compute value of the model function at abscissa.

Reimplemented from Kaskade::PolynomialModel.

Definition at line 135 of file modelfunction.hh.

◆ 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.

◆ valBwd()

virtual double Kaskade::LogLogModel::valBwd ( double  v)
inlineprotectedvirtual

Reimplemented from Kaskade::TransformedPolynomialModel.

Definition at line 172 of file modelfunction.hh.

◆ valFwd()

virtual double Kaskade::LogLogModel::valFwd ( double  v)
inlineprotectedvirtual

Reimplemented from Kaskade::TransformedPolynomialModel.

Definition at line 171 of file modelfunction.hh.

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

Member Data Documentation

◆ coefficients

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

◆ data

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

◆ datastart

int Kaskade::ScalarModelFunction::datastart
protectedinherited

◆ degree

int Kaskade::PolynomialModel::degree
protectedinherited

Definition at line 118 of file modelfunction.hh.

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

◆ maxels

int Kaskade::PolynomialModel::maxels
protectedinherited

Definition at line 120 of file modelfunction.hh.

Referenced by Kaskade::PolynomialModel::computeCoefficients().

◆ modified

bool Kaskade::ScalarModelFunction::modified
protectedinherited

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