#include <Gaussian.hpp>
Public Member Functions |
| Gaussian (const double magnitude, const double mean, const double std_dev) |
virtual double | getValue (const double x) const |
| Evaluate the function at x.
|
virtual void | setScale (const double magnitude) |
virtual double | getDf (const double x) const |
| To be implemented.
|
virtual double | getFrequency () const |
| return the central frequency
|
int | getType () const |
virtual | ~Gaussian () |
| Function () |
double | rtnewt (const double x1, const double x2, const double xacc) const |
| Use the Newton-Raphson method, find the root of a function known to line in the interval [x1, x2].
|
double | rtsecan (double xn_1, double xn, const double xacc) const |
| o * Use the secant method to find the root of a function with the initial guess at xn_1 and xn.
|
virtual | ~Function () |
Private Attributes |
double | A |
double | mu |
double | sigma |
Constructor & Destructor Documentation
Gaussian::Gaussian |
( |
const double |
magnitude, |
|
|
const double |
mean, |
|
|
const double |
std_dev |
|
) |
| |
virtual Gaussian::~Gaussian |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
double Gaussian::getDf |
( |
const double |
x | ) |
const |
|
virtual |
To be implemented.
Reimplemented from Function.
double Gaussian::getFrequency |
( |
| ) |
const |
|
virtual |
return the central frequency
Reimplemented from Function.
int Gaussian::getType |
( |
| ) |
const |
double Gaussian::getValue |
( |
const double |
x | ) |
const |
|
virtual |
Evaluate the function at x.
Reimplemented from Function.
void Gaussian::setScale |
( |
const double |
magnitude | ) |
|
|
virtual |
Member Data Documentation
The documentation for this class was generated from the following files: