#include <interpolation.h>
Represent a piecewise linear interpolation.
| T | Type of interpolated values. | 
Definition at line 62 of file interpolation.h.
Public Member Functions | |
| InterpolateDataLinear (const std::vector< T > &x, const std::vector< T > &y) | |
| Interpolate function f given discrete samples f(x_i) = y_i.  More... | |
| T | operator() (T x) const | 
| Calculate spline interpolation at x.  More... | |
Private Attributes | |
| std::vector< T > | x_ | 
| x_i  More... | |
| std::vector< InterpolateLinear< T > > | f_ | 
| Piecewise linear interpolation using f(x_i)  More... | |
| smash::InterpolateDataLinear< T >::InterpolateDataLinear | ( | const std::vector< T > & | x, | 
| const std::vector< T > & | y | ||
| ) | 
Interpolate function f given discrete samples f(x_i) = y_i.
| x | x-values. | 
| y | y-values. | 
Piecewise linear interpolation is used. Values outside the given samples will use the outmost linear interpolation.
Definition at line 195 of file interpolation.h.
| T smash::InterpolateDataLinear< T >::operator() | ( | T | x | ) | const | 
Calculate spline interpolation at x.
| x | Interpolation argument. | 
Definition at line 240 of file interpolation.h.
      
  | 
  private | 
x_i
Definition at line 86 of file interpolation.h.
      
  | 
  private | 
Piecewise linear interpolation using f(x_i)
Definition at line 88 of file interpolation.h.