casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
casa::GNoiseParam< T > Class Template Reference

A one dimensional normal distribution. More...

#include <GNoiseParam.h>

Inheritance diagram for casa::GNoiseParam< T >:
casa::Function< T > casa::Functional< FunctionTraits< T >::ArgType, T > casa::Functional< Vector< FunctionTraits< T >::ArgType >, T > casa::GNoiseFunction< T >

List of all members.

Public Member Functions

 GNoiseParam ()
 Constructs the GNoise, Defaults: mean=0, var=1.0.
 GNoiseParam (const Double &mean, const Double &var)
 GNoiseParam (const GNoiseParam< T > &other)
 Copy constructor (deep copy)
GNoiseParam< T > & operator= (const GNoiseParam< T > &other)
 Copy assignment (deep copy)
virtual ~GNoiseParam ()
 Destructor.
virtual uInt ndim () const
 Returns the number of dimensions of function.
virtual const Stringname () const
 Give name of function.

Protected Attributes

ACG genit_p
 Random generator.
Normal noise_p
 Normal noise.

Detailed Description

template<class T>
class casa::GNoiseParam< T >

A one dimensional normal distribution.

Intended use:

Internal

Review Status

Test programs:
tFunctionHolder

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

Definition at line 80 of file GNoiseParam.h.


Constructor & Destructor Documentation

template<class T>
casa::GNoiseParam< T >::GNoiseParam ( )

Constructs the GNoise, Defaults: mean=0, var=1.0.

template<class T>
casa::GNoiseParam< T >::GNoiseParam ( const Double mean,
const Double var 
)
template<class T>
casa::GNoiseParam< T >::GNoiseParam ( const GNoiseParam< T > &  other)

Copy constructor (deep copy)

template<class T>
virtual casa::GNoiseParam< T >::~GNoiseParam ( ) [virtual]

Destructor.


Member Function Documentation

template<class T>
virtual const String& casa::GNoiseParam< T >::name ( ) const [inline, virtual]

Give name of function.

Reimplemented from casa::Function< T >.

Definition at line 109 of file GNoiseParam.h.

template<class T>
virtual uInt casa::GNoiseParam< T >::ndim ( ) const [inline, virtual]

Returns the number of dimensions of function.

Implements casa::Function< T >.

Definition at line 105 of file GNoiseParam.h.

template<class T>
GNoiseParam<T>& casa::GNoiseParam< T >::operator= ( const GNoiseParam< T > &  other)

Copy assignment (deep copy)


Member Data Documentation

template<class T>
ACG casa::GNoiseParam< T >::genit_p [protected]

Random generator.

Definition at line 115 of file GNoiseParam.h.

template<class T>
Normal casa::GNoiseParam< T >::noise_p [mutable, protected]

Normal noise.

Definition at line 117 of file GNoiseParam.h.


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