|
Audio Processing Framework (APF) version 0.5.0
|
Function object for linear interpolation. More...
#include <apf/math.h>
Public Types | |
| using | argument_type = U |
| using | result_type = T |
Public Member Functions | |
| linear_interpolator () | |
| Default constructor. More... | |
| linear_interpolator (result_type first, result_type last, argument_type length=argument_type(1)) | |
| Constructor with range and optional length. More... | |
| void | set (result_type first, result_type last, argument_type length=argument_type(1)) |
| Set range and optional length. More... | |
| result_type | operator() (argument_type x) |
| Function call operator. More... | |
Function object for linear interpolation.
| T | result type |
| U | input type |
U is an integral type and T is floating point, don't forget that the cast operation takes some processing time. It may be more efficient to use the same floating point type for both T and U. | using apf::math::linear_interpolator< T, U >::argument_type = U |
| using apf::math::linear_interpolator< T, U >::result_type = T |
|
inline |
|
inline |
Constructor with range and optional length.
Definition at line 288 of file math.h.
References apf::math::linear_interpolator< T, U >::set().
|
inline |
Set range and optional length.
| first | output value if input is zero |
| last | output value if input is length |
| length | length of interval on which to interpolate |
Definition at line 298 of file math.h.
Referenced by apf::math::linear_interpolator< T, U >::linear_interpolator().
|
inline |