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

A one dimensional Poisson function. More...

#include <PoissonFunction.h>

Inheritance diagram for casa::PoissonFunction< T >:
casa::PoissonParam< T > casa::Function< T > casa::Functional< FunctionTraits< T >::ArgType, T > casa::Functional< Vector< FunctionTraits< T >::ArgType >, T >

List of all members.

Public Member Functions

 PoissonFunction ()
 Constructs the PoissonFunction, Defaults: lambda=1.
 PoissonFunction (const T &lambda)
 PoissonFunction (const T &lambda, const T &height)
 PoissonFunction (const PoissonFunction< T > &other)
 Copy constructor (deep copy)
template<class W >
 PoissonFunction (const PoissonFunction< W > &other)
PoissonFunction< T > & operator= (const PoissonFunction< T > &other)
 Copy assignment (deep copy)
virtual ~PoissonFunction ()
 Destructor.
virtual T eval (typename Function< T >::FunctionArg x) const
 Evaluate the Poisson at x.
virtual Function< T > * clone () const
 Return a copy of this object from the heap.
virtual Function< typename
FunctionTraits< T >::DiffType > * 
cloneAD () const
virtual Function< typename
FunctionTraits< T >::BaseType > * 
cloneNonAD () const

Detailed Description

template<class T>
class casa::PoissonFunction< T >

A one dimensional Poisson function.

Intended use:

Public interface

Review Status

Test programs:
tFunctionHolder

Prerequisite

Etymology

A 1-dimensional Poisson.

Synopsis

A Poisson is described by lambda. The parameters are enumerated by LAMBDA. They have default values of 1.

Example

       PoissonFunction<Double> sf(5.0);
       sf(25);            // = 5.0

Template Type Argument Requirements (T)

Thrown Exceptions

Definition at line 78 of file PoissonFunction.h.


Constructor & Destructor Documentation

template<class T>
casa::PoissonFunction< T >::PoissonFunction ( ) [inline]

Constructs the PoissonFunction, Defaults: lambda=1.


Warning: Could not use default arguments that worked both with gcc and IRIX

Definition at line 87 of file PoissonFunction.h.

template<class T>
casa::PoissonFunction< T >::PoissonFunction ( const T &  lambda) [inline, explicit]

Definition at line 88 of file PoissonFunction.h.

template<class T>
casa::PoissonFunction< T >::PoissonFunction ( const T &  lambda,
const T &  height 
) [inline]

Definition at line 90 of file PoissonFunction.h.

template<class T>
casa::PoissonFunction< T >::PoissonFunction ( const PoissonFunction< T > &  other) [inline]

Copy constructor (deep copy)

Definition at line 96 of file PoissonFunction.h.

template<class T>
template<class W >
casa::PoissonFunction< T >::PoissonFunction ( const PoissonFunction< W > &  other) [inline]

Definition at line 98 of file PoissonFunction.h.

template<class T>
virtual casa::PoissonFunction< T >::~PoissonFunction ( ) [inline, virtual]

Destructor.

Definition at line 106 of file PoissonFunction.h.


Member Function Documentation

template<class T>
virtual Function<T>* casa::PoissonFunction< 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 119 of file PoissonFunction.h.

template<class T>
virtual Function<typename FunctionTraits<T>::DiffType>* casa::PoissonFunction< T >::cloneAD ( ) const [inline, virtual]

Reimplemented from casa::Function< T >.

Definition at line 120 of file PoissonFunction.h.

template<class T>
virtual Function<typename FunctionTraits<T>::BaseType>* casa::PoissonFunction< T >::cloneNonAD ( ) const [inline, virtual]

Reimplemented from casa::Function< T >.

Definition at line 122 of file PoissonFunction.h.

template<class T>
virtual T casa::PoissonFunction< T >::eval ( typename Function< T >::FunctionArg  x) const [virtual]

Evaluate the Poisson at x.

If a vector is used as the argument only its first element is used.

template<class T>
PoissonFunction<T>& casa::PoissonFunction< T >::operator= ( const PoissonFunction< T > &  other) [inline]

Copy assignment (deep copy)

Definition at line 102 of file PoissonFunction.h.


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