Acoustic FDTD Solver
Public Member Functions | Private Attributes | List of all members
Gaussian Class Reference

#include <Gaussian.hpp>

Inheritance diagram for Gaussian:
Function

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 ()
- Public Member Functions inherited from Function
 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

Reimplemented from Function.

Member Data Documentation

double Gaussian::A
private
double Gaussian::mu
private
double Gaussian::sigma
private

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