Thermal-FIST
1.3
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) More... | |
~BilinearSplineFunction (void) | |
Destructor. More... | |
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.
|
inline |
Default constructror. Empty function.
Definition at line 27 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 41 of file BilinearSplineFunction.h.
|
inline |
Destructor.
Definition at line 99 of file BilinearSplineFunction.h.
|
inline |
Evaluates interpolated f(x,y)
Definition at line 75 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 55 of file BilinearSplineFunction.h.