|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
#include <Function.h>
Public Member Functions | |
| ConstantFunction () | |
| virtual | ~ConstantFunction () |
| virtual double | EvaluateAt (double x) const override |
| virtual double | EvaluateDerivativeAt (double x) const override |
Public Member Functions inherited from AudioDataLib::Function | |
| Function () | |
| virtual | ~Function () |
Public Attributes | |
| double | y |
The simplest kind of function, this one return the same output value for all input values.
| ConstantFunction::ConstantFunction | ( | ) |
|
virtual |
|
overridevirtual |
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.
Implements AudioDataLib::Function.
|
overridevirtual |
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 from AudioDataLib::Function.
| double AudioDataLib::ConstantFunction::y |