|
AuxPort 0.2
Modules for Audio Software Development
|
Class that evaluates a function at a given x-value using the taylor series approximation. More...
#include <AuxSeries.h>
Public Member Functions | |
| AuxSeriesEngine (const AuxSeriesEngine &obj)=default | |
| float | computeFunction (float x) |
| Evaluates a taylor series approxination of the chosen function at a given x-value. | |
Public Member Functions inherited from AuxPort::AuxSeries | |
| AuxSeries (const AuxSeries &obj)=default | |
| std::vector< TaylorTerms > & | getTerms (uint32 N, const Type &type=Type::Sin) |
| Computes the Taylor Series terms and returns a vector of those terms. | |
| void | computeTerms (uint32 N, const Type &type=Type::Sin) |
| Computes Taylor Series terms and stores them in a vector internally. | |
Additional Inherited Members | |
Public Types inherited from AuxPort::AuxSeries | |
| enum | Type { Sin , Cos , Sinh , Cosh , Tanh , ArcTan , E , NaturalLog , Undefined } |
| Type is used to specify the mathematical function, the class should compute the series for. More... | |
Protected Types inherited from AuxPort::File | |
| enum | Mode { Idle = 0 , Read = 1 , Write = 2 } |
| Easy way to specify the Read/Write behavior of the File Stream. More... | |
Protected Member Functions inherited from AuxPort::TextFile | |
| TextFile ()=default | |
| Default Constructor, Initializes the TextFile API. | |
| ~TextFile ()=default | |
| Default Destructor. | |
| std::string & | readFileAsString () |
| Reads the entire text file and saves it in a String. | |
| void | writeLineToFile (const std::string &data, bool log=false) |
| Writes a line to the Text File. | |
| bool | readLineFromFile (std::string &line, bool log=false) |
| Reads a line to the Text File. | |
| bool | open (const std::string &fileName, const Mode &mode=Mode::Read, bool log=false) override |
| Opens the given file as a text file. | |
| bool | close (bool log=false) override |
| Closes current text file stream. | |
Protected Member Functions inherited from AuxPort::File | |
| File (const File &file)=default | |
| std::string | getCurrentDirectory () |
| Returns the current directory, the program is running in. | |
| std::vector< std::string > & | getListOfFiles (const std::string &extension="") |
| Returns list of files present in the current directory. | |
| void | Log () override |
| Override this function to specify logging behavior. | |
Protected Member Functions inherited from AuxPort::ILog | |
| void | setColour (const ColourType &colourType) |
| This function allows you to set text colour for the text to be printed onto the console. | |
Protected Member Functions inherited from AuxPort::TextFormat | |
| TextFormat (const TextFormat &textFormat)=default | |
| void | Log () override |
| Implement this method in the derived class to specify logging behaviour. | |
| std::string & | getFormatName () |
| Return the format name. | |
| std::string & | getUniqueIdentifier () |
| Return the unique identifier for the text format. | |
| std::string & | getExtensionName () |
| Returns the extension name. | |
| void | setExtensionName (const std::string &extensionName) |
| Sets the extension name. | |
| void | setUniqueIdentifier (const std::string &uniqueIdentifier) |
| Sets the unique identifier for the text format. | |
| void | setFormatName (const std::string &formatName) |
| Sets the format name. | |
| virtual void | read (std::string &line, int props=0)=0 |
| Implement this function to specify the read operation for the file. | |
| virtual void | write (const std::string &line, int props=0)=0 |
| Implement this function to specify the write operation for the file. | |
Protected Attributes inherited from AuxPort::File | |
| std::unique_ptr< std::ofstream > | fileWriter |
| std::unique_ptr< std::ifstream > | fileReader |
| std::string | fileName |
| std::string | fileExtension |
| std::string | errorMessage |
| Mode | mode |
Protected Attributes inherited from AuxPort::TextFormat | |
| std::string | formatName |
| std::string | uniqueIdentifier |
| std::string | extensionName |
Class that evaluates a function at a given x-value using the taylor series approximation.
Example Usage:
Definition at line 157 of file AuxSeries.h.
| float AuxPort::AuxSeriesEngine::computeFunction | ( | float | x | ) |
Evaluates a taylor series approxination of the chosen function at a given x-value.
Definition at line 354 of file AuxSeries.cpp.