Gin
|
Cubic spline interpolation is a simple way to obtain a smooth curve from a set of discrete points. More...
Classes | |
class | Element |
Public Member Functions | |
Spline (const juce::Array< Point< double >> &points) | |
double | operator[] (double x) const |
double | interpolate (double x) const |
Cubic spline interpolation is a simple way to obtain a smooth curve from a set of discrete points.
It has both C1 (first derivative) and C2 (second derivative) continuity, enabling it to produce a continuous piecewise function given a set of data points.
Add points in increasing x order
Spline::Spline | ( | const juce::Array< Point< double >> & | points | ) |
double Spline::operator[] | ( | double | x | ) | const |
double Spline::interpolate | ( | double | x | ) | const |