AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Interpolation Class Reference

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.
 

Detailed Description

This class provides an interface for interpolation.

Definition at line 127 of file AuxMath.h.

Member Enumeration Documentation

◆ Type

enum class AuxPort::Interpolation::Type
strong

Specifies the type of interpolation.

Definition at line 133 of file AuxMath.h.

Constructor & Destructor Documentation

◆ Interpolation()

AuxPort::Interpolation::Interpolation ( )

Default Constructor. Initializes the object with default type as Linear Interpolation.

Definition at line 3 of file AuxMath.cpp.

Member Function Documentation

◆ polate()

float AuxPort::Interpolation::polate ( float val)

This function interpolated the function's value at the given x-value.

Note
val should be in the range [start, end]

Definition at line 32 of file AuxMath.cpp.

◆ setType()

void AuxPort::Interpolation::setType ( Type type)

Sets the type of interpoaltion.

Definition at line 9 of file AuxMath.cpp.

◆ setXValues()

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.

◆ setYValues()

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.


The documentation for this class was generated from the following files: