AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
Loading...
Searching...
No Matches
AudioDataLib::ConstantFunction Class Reference

#include <Function.h>

Inheritance diagram for AudioDataLib::ConstantFunction:
AudioDataLib::Function

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
 

Detailed Description

The simplest kind of function, this one return the same output value for all input values.

Constructor & Destructor Documentation

◆ ConstantFunction()

ConstantFunction::ConstantFunction ( )

◆ ~ConstantFunction()

ConstantFunction::~ConstantFunction ( )
virtual

Member Function Documentation

◆ EvaluateAt()

double ConstantFunction::EvaluateAt ( double x) const
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.

◆ EvaluateDerivativeAt()

double ConstantFunction::EvaluateDerivativeAt ( double x) const
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.

Member Data Documentation

◆ y

double AudioDataLib::ConstantFunction::y

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