casa
$Rev:20696$
|
A one dimensional Poisson function. More...
#include <PoissonFunction.h>
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 |
A one dimensional Poisson function.
Public interface
A 1-dimensional Poisson.
A Poisson
is described by lambda. The parameters are enumerated by LAMBDA. They have default values of 1.
PoissonFunction<Double> sf(5.0);
sf(25); // = 5.0
Definition at line 78 of file PoissonFunction.h.
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.
casa::PoissonFunction< T >::PoissonFunction | ( | const T & | lambda | ) | [inline, explicit] |
Definition at line 88 of file PoissonFunction.h.
casa::PoissonFunction< T >::PoissonFunction | ( | const T & | lambda, |
const T & | height | ||
) | [inline] |
Definition at line 90 of file PoissonFunction.h.
casa::PoissonFunction< T >::PoissonFunction | ( | const PoissonFunction< T > & | other | ) | [inline] |
Copy constructor (deep copy)
Definition at line 96 of file PoissonFunction.h.
casa::PoissonFunction< T >::PoissonFunction | ( | const PoissonFunction< W > & | other | ) | [inline] |
Definition at line 98 of file PoissonFunction.h.
virtual casa::PoissonFunction< T >::~PoissonFunction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 106 of file PoissonFunction.h.
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.
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.
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.
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.
PoissonFunction<T>& casa::PoissonFunction< T >::operator= | ( | const PoissonFunction< T > & | other | ) | [inline] |
Copy assignment (deep copy)
Definition at line 102 of file PoissonFunction.h.