![]() |
Thermal-FIST 1.5
Package for hadron resonance gas model applications
|
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) | |
~BilinearSplineFunction (void)=default | |
Destructor. | |
A class implementing a bilinear spline.
Implementation of bilinear spline function f(x,y) of two arguments. Uses a 1D spline function to model f(y;x) at each discrete y Requires that (x,y) values form a grid.
Definition at line 22 of file BilinearSplineFunction.h.
|
inline |
Default constructor. Empty function.
Definition at line 28 of file BilinearSplineFunction.h.
|
inline |
Constructor which sets the data from the provided vectors.
x | A vector of x values. |
y | A vector of y values. |
vals | A 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 43 of file BilinearSplineFunction.h.
|
default |
Destructor.
|
inline |
Evaluates interpolated f(x,y)
Definition at line 78 of file BilinearSplineFunction.h.
|
inline |
Method which sets the data from the provided vectors.
x | A vector of x values. |
y | A vector of y values. |
vals | A 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 58 of file BilinearSplineFunction.h.