casa
$Rev:20696$
|
A one dimensional normal distribution. More...
#include <GNoiseFunction.h>
Public Member Functions | |
GNoiseFunction () | |
Constructs the GNoise, Defaults: mean=0, var=1.0. | |
GNoiseFunction (const Double &mean, const Double &var) | |
GNoiseFunction (const GNoiseFunction< T > &other) | |
Copy constructor (deep copy) | |
template<class W > | |
GNoiseFunction (const GNoiseFunction< W > &other) | |
GNoiseFunction< T > & | operator= (const GNoiseFunction< T > &other) |
Copy assignment (deep copy) | |
virtual | ~GNoiseFunction () |
Destructor. | |
virtual T | eval (typename Function< T >::FunctionArg x) const |
Evaluate the GNoise at x . | |
virtual Function< T > * | clone () const |
Return a copy of this object from the heap. |
A one dimensional normal distribution.
Public interface
Gaussian Noise generator.
A GNoise
is described by a mean and a variance (Note these are not parameters in the Function
sense, but more like the order of a polynomial. The defaults are 0 and 1.
GNoiseFunction<Double> sf;
sf(); // = 0.12
Definition at line 80 of file GNoiseFunction.h.
casa::GNoiseFunction< T >::GNoiseFunction | ( | ) | [inline] |
Constructs the GNoise, Defaults: mean=0, var=1.0.
Definition at line 87 of file GNoiseFunction.h.
casa::GNoiseFunction< T >::GNoiseFunction | ( | const Double & | mean, |
const Double & | var | ||
) | [inline] |
Definition at line 88 of file GNoiseFunction.h.
casa::GNoiseFunction< T >::GNoiseFunction | ( | const GNoiseFunction< T > & | other | ) | [inline] |
Copy constructor (deep copy)
Definition at line 94 of file GNoiseFunction.h.
casa::GNoiseFunction< T >::GNoiseFunction | ( | const GNoiseFunction< W > & | other | ) | [inline] |
Definition at line 96 of file GNoiseFunction.h.
virtual casa::GNoiseFunction< T >::~GNoiseFunction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 104 of file GNoiseFunction.h.
virtual Function<T>* casa::GNoiseFunction< T >::clone | ( | ) | const [inline, virtual] |
Return a copy of this object from the heap.
The caller is responsible for deleting this pointer.
Implements casa::Function< T >.
Definition at line 117 of file GNoiseFunction.h.
virtual T casa::GNoiseFunction< T >::eval | ( | typename Function< T >::FunctionArg | x | ) | const [virtual] |
Evaluate the GNoise at x
.
If a vector is used as the argument only its first element is used.
GNoiseFunction<T>& casa::GNoiseFunction< T >::operator= | ( | const GNoiseFunction< T > & | other | ) | [inline] |
Copy assignment (deep copy)
Definition at line 100 of file GNoiseFunction.h.