Thermal-FIST  1.3
Package for hadron resonance gas model applications
Public Member Functions | List of all members
thermalfist::SplineFunction Class Reference

Class implementing a simple linear spline. More...

#include <SplineFunction.h>

Public Member Functions

 SplineFunction ()
 
 SplineFunction (std::vector< double > x, std::vector< double > y)
 
void add_val (double x, double val)
 Adds a new pair of x,y values. More...
 
double f (double arg) const
 Evaluates interpolated function at x = arg. More...
 
double df (double arg) const
 Evaluates slope (derivative) at x = arg. More...
 
double fsquare (double arg)
 Evaluates f(arg)^2. More...
 
void clear ()
 Clear all data and refill with zero function. More...
 
void clearall ()
 Just clear all data. More...
 
void fill (std::vector< double > x, std::vector< double > y)
 Fill (x,y) pairs from provided vectors. More...
 
void setConstant (double val)
 Models constnat f(x) == val function. More...
 

Detailed Description

Class implementing a simple linear spline.

Definition at line 22 of file SplineFunction.h.

Constructor & Destructor Documentation

thermalfist::SplineFunction::SplineFunction ( )
inline

Definition at line 25 of file SplineFunction.h.

thermalfist::SplineFunction::SplineFunction ( std::vector< double >  x,
std::vector< double >  y 
)
inline

Definition at line 29 of file SplineFunction.h.

Member Function Documentation

void thermalfist::SplineFunction::add_val ( double  x,
double  val 
)
inline

Adds a new pair of x,y values.

Definition at line 38 of file SplineFunction.h.

void thermalfist::SplineFunction::clear ( )
inline

Clear all data and refill with zero function.

Definition at line 85 of file SplineFunction.h.

void thermalfist::SplineFunction::clearall ( )
inline

Just clear all data.

Definition at line 94 of file SplineFunction.h.

double thermalfist::SplineFunction::df ( double  arg) const
inline

Evaluates slope (derivative) at x = arg.

Definition at line 66 of file SplineFunction.h.

double thermalfist::SplineFunction::f ( double  arg) const
inline

Evaluates interpolated function at x = arg.

Definition at line 45 of file SplineFunction.h.

void thermalfist::SplineFunction::fill ( std::vector< double >  x,
std::vector< double >  y 
)
inline

Fill (x,y) pairs from provided vectors.

Definition at line 99 of file SplineFunction.h.

double thermalfist::SplineFunction::fsquare ( double  arg)
inline

Evaluates f(arg)^2.

Definition at line 79 of file SplineFunction.h.

void thermalfist::SplineFunction::setConstant ( double  val)
inline

Models constnat f(x) == val function.

Definition at line 109 of file SplineFunction.h.


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