|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
These are real-valued functions of a real variable. More...
#include <Function.h>
Public Member Functions | |
| Function () | |
| virtual | ~Function () |
| virtual double | EvaluateAt (double x) const =0 |
| virtual double | EvaluateDerivativeAt (double x) const |
These are real-valued functions of a real variable.
Functions are as fundamental to mathematics as numbers, so it's not surprising to find the concept useful enough to abstract them in this manner.
| Function::Function | ( | ) |
|
virtual |
|
pure virtual |
Derived classes should override this method to provide a means of evaluating this function at the given value, typically representative of time in this library.
Implemented in AudioDataLib::LinearFallOffFunction, AudioDataLib::RecursiveFilter, AudioDataLib::WaveForm, AudioDataLib::WaveFormStream, and AudioDataLib::ConstantFunction.
|
virtual |
Derived classes can override this method to provide a means of evaluating the derivative of this function at the given value. By default, a central differencing approximation method is implimented here. If a more accurate method is possible, it should be implimented by the derived class.
Reimplemented in AudioDataLib::ConstantFunction.