This is a TabulatedFunction that computes a continuous one dimensional function.
More...
#include <TabulatedFunction.h>
This is a TabulatedFunction that computes a continuous one dimensional function.
Create a Continuous1DFunction f(x) based on a set of tabulated values.
- Parameters
-
values | the tabulated values of the function f(x) at uniformly spaced values of x between min and max. A natural cubic spline is used to interpolate between the tabulated values. The function is assumed to be zero for x < min or x > max. |
min | the value of x corresponding to the first element of values |
max | the value of x corresponding to the last element of values |
void getFunctionParameters |
( |
std::vector< double > & |
values, |
|
|
double & |
min, |
|
|
double & |
max |
|
) |
| const |
Get the parameters for the tabulated function.
- Parameters
-
values | the tabulated values of the function f(x) at uniformly spaced values of x between min and max. A natural cubic spline is used to interpolate between the tabulated values. The function is assumed to be zero for x < min or x > max. |
min | the value of x corresponding to the first element of values |
max | the value of x corresponding to the last element of values |
void setFunctionParameters |
( |
const std::vector< double > & |
values, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
Set the parameters for the tabulated function.
- Parameters
-
values | the tabulated values of the function f(x) at uniformly spaced values of x between min and max. A natural cubic spline is used to interpolate between the tabulated values. The function is assumed to be zero for x < min or x > max. |
min | the value of x corresponding to the first element of values |
max | the value of x corresponding to the last element of values |
The documentation for this class was generated from the following file: