AuxPort 0.2
Modules for Audio Software Development
|
This class provides an interface for interpolation. More...
#include <AuxMath.h>
Public Types | |
enum class | Type { Linear , Cubic , Cosine , Lagrange , Newton } |
Specifies the type of interpolation. More... | |
Public Member Functions | |
Interpolation () | |
Default Constructor. Initializes the object with default type as Linear Interpolation. | |
Interpolation (const Interpolation &interpolation)=default | |
void | setType (Type type) |
Sets the type of interpoaltion. | |
void | setXValues (float start, float end, float delta) |
Use this function to provide the x coordinates of the points where the function's value in known. | |
void | setYValues (const std::vector< float > yValues) |
Use this function to set the function's valuesat the given X coordinates. | |
float | polate (float val) |
This function interpolated the function's value at the given x-value. | |
|
strong |
AuxPort::Interpolation::Interpolation | ( | ) |
Default Constructor. Initializes the object with default type as Linear Interpolation.
Definition at line 3 of file AuxMath.cpp.
float AuxPort::Interpolation::polate | ( | float | val | ) |
This function interpolated the function's value at the given x-value.
Definition at line 32 of file AuxMath.cpp.
void AuxPort::Interpolation::setType | ( | Type | type | ) |
Sets the type of interpoaltion.
Definition at line 9 of file AuxMath.cpp.
void AuxPort::Interpolation::setXValues | ( | float | start, |
float | end, | ||
float | delta ) |
Use this function to provide the x coordinates of the points where the function's value in known.
Definition at line 14 of file AuxMath.cpp.
void AuxPort::Interpolation::setYValues | ( | const std::vector< float > | yValues | ) |
Use this function to set the function's valuesat the given X coordinates.
Definition at line 25 of file AuxMath.cpp.