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

A class implementing a bilinear spline. More...

#include <BilinearSplineFunction.h>

Public Member Functions

 BilinearSplineFunction (void)
 
 BilinearSplineFunction (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &vals)
 
void setData (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &vals)
 
double Eval (double x, double y) const
 Evaluates interpolated f(x,y) More...
 
 ~BilinearSplineFunction (void)
 Destructor. More...
 

Detailed Description

A class implementing a bilinear spline.

Implementation of bilinear spline function f(x,y) of two arguments. Uses a 1D spline function tp model f(y;x) at each discrete y Requires that (x,y) values form a grid.

Definition at line 21 of file BilinearSplineFunction.h.

Constructor & Destructor Documentation

thermalfist::BilinearSplineFunction::BilinearSplineFunction ( void  )
inline

Default constructror. Empty function.

Definition at line 27 of file BilinearSplineFunction.h.

thermalfist::BilinearSplineFunction::BilinearSplineFunction ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  vals 
)
inline

Constructor which sets the data from the provided vectors.

Parameters
xA vector of x values.
yA vector of y values.
valsA vector of f(x,y) values. Data must be sorted in non-descending order of x values, and then in non-descending order of y values for equal x values. Provided (x,y) set must form a grid.

Definition at line 41 of file BilinearSplineFunction.h.

thermalfist::BilinearSplineFunction::~BilinearSplineFunction ( void  )
inline

Destructor.

Definition at line 99 of file BilinearSplineFunction.h.

Member Function Documentation

double thermalfist::BilinearSplineFunction::Eval ( double  x,
double  y 
) const
inline

Evaluates interpolated f(x,y)

Definition at line 75 of file BilinearSplineFunction.h.

void thermalfist::BilinearSplineFunction::setData ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  vals 
)
inline

Method which sets the data from the provided vectors.

Parameters
xA vector of x values.
yA vector of y values.
valsA vector of f(x,y) values. Data must be sorted in non-descending order of x values, and then in non-descending order of y values for equal x values. Provided (x,y) set must form a grid.

Definition at line 55 of file BilinearSplineFunction.h.


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