Copy constructor (deep copy)
Return a copy of this object from the heap. The caller is responsible
for deleting this pointer.
Prerequisite
Etymology
Gaussian Noise generator.
Synopsis
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.
Example
GNoiseFunction<Double> sf;
sf(); // = 0.12
Template Type Argument Requirements (T)
Thrown Exceptions
Member Description
GNoiseFunction() : GNoiseParam<T>()
Constructs the GNoise, Defaults:
mean=0, var=1.0
GNoiseFunction(const Double &mean, const Double &var) : var<T>(mean, var)
GNoiseFunction(const GNoiseFunction<T> &other) : other<T>(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.
If a vector is used as the argument only its first element is used.
virtual Function<T> *clone() const