#include <GaussianModulatedSinusoid.hpp>
Public Member Functions |
| GaussianModulatedSinusoid () |
| GaussianModulatedSinusoid (const double magnitude, const double frequency, const double mean, const double std_dev) |
| Create a Gaussian modulated sinusoid signal.
|
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 |
| Evaluate the first-order derivative at x.
|
virtual double | getFrequency () const |
| return the central frequency
|
int | getType () const |
virtual | ~GaussianModulatedSinusoid () |
| 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 |
| Peak amplitude.
|
double | f_c |
| Carrier frequency.
|
double | mu |
| Temporal delay, equal to 7*sigma to ensure a smooth transition from 0 to non zero.
|
double | sigma |
| Temporal variance.
|
Constructor & Destructor Documentation
GaussianModulatedSinusoid::GaussianModulatedSinusoid |
( |
| ) |
|
GaussianModulatedSinusoid::GaussianModulatedSinusoid |
( |
const double |
magnitude, |
|
|
const double |
frequency, |
|
|
const double |
mean, |
|
|
const double |
std_dev |
|
) |
| |
Create a Gaussian modulated sinusoid signal.
The peak of the Gaussian envelop is aligned with the zero of the sinusoid.
The exact function implemented here is
where .
- Parameters
-
magnitude | |
frequency | |
mean | |
std_dev | |
virtual GaussianModulatedSinusoid::~GaussianModulatedSinusoid |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
double GaussianModulatedSinusoid::getDf |
( |
const double |
x | ) |
const |
|
virtual |
Evaluate the first-order derivative at x.
Reimplemented from Function.
double GaussianModulatedSinusoid::getFrequency |
( |
| ) |
const |
|
virtual |
return the central frequency
Reimplemented from Function.
int GaussianModulatedSinusoid::getType |
( |
| ) |
const |
double GaussianModulatedSinusoid::getValue |
( |
const double |
x | ) |
const |
|
virtual |
Evaluate the function at x.
Reimplemented from Function.
void GaussianModulatedSinusoid::setScale |
( |
const double |
magnitude | ) |
|
|
virtual |
Member Data Documentation
double GaussianModulatedSinusoid::A |
|
private |
double GaussianModulatedSinusoid::f_c |
|
private |
double GaussianModulatedSinusoid::mu |
|
private |
Temporal delay, equal to 7*sigma to ensure a smooth transition from 0 to non zero.
Avoid high-frequency component
double GaussianModulatedSinusoid::sigma |
|
private |
The documentation for this class was generated from the following files: