#include <interpolation.h>
Represent a linear interpolation.
| T | Type of interpolated values. | 
Definition at line 34 of file interpolation.h.
Public Member Functions | |
| InterpolateLinear (T x0, T y0, T x1, T y1) | |
| Linear interpolation given two points (x0, y0) and (x1, y1).  More... | |
| T | operator() (T x) const | 
| Calculate spline interpolation at x.  More... | |
Public Attributes | |
| T | slope_ | 
| Slope of the linear interpolation.  More... | |
| T | yintercept_ | 
| y-axis intercept of the linear interpolation.  More... | |
| smash::InterpolateLinear< T >::InterpolateLinear | ( | T | x0, | 
| T | y0, | ||
| T | x1, | ||
| T | y1 | ||
| ) | 
Linear interpolation given two points (x0, y0) and (x1, y1).
Definition at line 92 of file interpolation.h.
| T smash::InterpolateLinear< T >::operator() | ( | T | x | ) | const | 
Calculate spline interpolation at x.
| x | Interpolation argument. | 
Definition at line 99 of file interpolation.h.
| T smash::InterpolateLinear< T >::slope_ | 
Slope of the linear interpolation.
Definition at line 37 of file interpolation.h.
| T smash::InterpolateLinear< T >::yintercept_ | 
y-axis intercept of the linear interpolation.
Definition at line 39 of file interpolation.h.