A spline is a function used to interpolate or smooth data. Splines are a series of polynomials joined at knots. More...
#include <Spline.hpp>
Public Member Functions | |
t_point_type | deriv (uint04 order, fltp08 x) const |
uint04 | find_closest (fltp08 x) const |
bool | makeMonotonic () |
t_point_type | operator() (fltp08 x) const |
void | setBoundary (SplineBoundaryType left, fltp08 left_value, SplineBoundaryType right, fltp08 right_value) |
void | setPoints (const Buffer< fltp08 > &x, const Buffer< t_point_type > &y, SplineType type) |
Buffer< t_point_type > | solve (t_point_type y, bool ignore_extrapolation) const |
Buffer< t_point_type > | solveCubic (t_point_type a, t_point_type b, t_point_type c, t_point_type d, int newton_iter) const |
Spline () | |
Spline (const Buffer< fltp08 > &X, const Buffer< t_point_type > &Y, SplineType type=SplineType::e_cspline, bool make_monotonic=false, SplineBoundaryType left=SplineBoundaryType::e_second_deriv, fltp08 left_value=0.0, SplineBoundaryType right=SplineBoundaryType::e_second_deriv, fltp08 right_value=0.0) | |
Spline (const Buffer< t_point_type > &Y, SplineType type=SplineType::e_cspline, SplineBoundaryType left=SplineBoundaryType::e_second_deriv, fltp08 left_value=0.0, SplineBoundaryType right=SplineBoundaryType::e_second_deriv, fltp08 right_value=0.0) | |
Static Public Member Functions | |
static fltp08 | getEPS () |
static Buffer< t_point_type > | solveLinear (t_point_type a, t_point_type b) |
static Buffer< t_point_type > | solveQuadratic (t_point_type a, t_point_type b, t_point_type c, int newton_iter=0) |
Protected Member Functions | |
void | setCoeffsFromB () |
Protected Attributes | |
Buffer< t_point_type > | m_b |
Buffer< t_point_type > | m_c |
t_point_type | m_c0 |
Buffer< t_point_type > | m_d |
SplineBoundaryType | m_left = SplineBoundaryType::e_second_deriv |
fltp08 | m_left_value = 0.0 |
bool | m_made_monotonic = false |
SplineBoundaryType | m_right = SplineBoundaryType::e_second_deriv |
fltp08 | m_right_value = 0.0 |
SplineType | m_type = SplineType::e_cspline |
Buffer< fltp08 > | m_x |
Buffer< t_point_type > | m_y |
A spline is a function used to interpolate or smooth data. Splines are a series of polynomials joined at knots.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |