|
void | set_points (const std::vector< double > &x, const std::vector< double > &y, const bool cubic_spline=true, const bool monotone_spline=false) |
|
double | operator() (double x) const |
|
|
std::vector< double > | m_x |
|
std::vector< double > | m_a |
|
std::vector< double > | m_b |
|
std::vector< double > | m_c |
|
std::vector< double > | m_y |
|
Class for cubic spline interpolation
Definition at line 686 of file utilities.h.
§ set_points()
void aspect::Utilities::tk::spline::set_points |
( |
const std::vector< double > & |
x, |
|
|
const std::vector< double > & |
y, |
|
|
const bool |
cubic_spline = true , |
|
|
const bool |
monotone_spline = false |
|
) |
| |
Initialize the spline.
- Parameters
-
x | X coordinates of interpolation points. |
y | Values in the interpolation points. |
cubic_spline | Whether to construct a cubic spline or just do linear interpolation |
monotone_spline | Whether the cubic spline should be a monotone cubic spline. Requires cubic_spline to be set to true. |
§ operator()()
double aspect::Utilities::tk::spline::operator() |
( |
double |
x | ) |
const |
Evaluate spline at point x
.
§ m_x
std::vector<double> aspect::Utilities::tk::spline::m_x |
|
private |
§ m_a
std::vector<double> aspect::Utilities::tk::spline::m_a |
|
private |
interpolation parameters [ f(x) = a*(x-x_i)^3 + b*(x-x_i)^2 + c*(x-x_i) + y_i ]
Definition at line 719 of file utilities.h.
§ m_b
std::vector<double> aspect::Utilities::tk::spline::m_b |
|
private |
§ m_c
std::vector<double> aspect::Utilities::tk::spline::m_c |
|
private |
§ m_y
std::vector<double> aspect::Utilities::tk::spline::m_y |
|
private |
The documentation for this class was generated from the following file: