casa
$Rev:20696$
|
A one dimensional Poisson function. More...
#include <PoissonParam.h>
Public Types | |
enum | { LAMBDA, HEIGHT } |
Parameter numbers. More... | |
Public Member Functions | |
PoissonParam () | |
Constructs the Poisson, Defaults: lambda=1. | |
PoissonParam (const T &lambda) | |
PoissonParam (const T &lambda, const T &height) | |
PoissonParam (const PoissonParam< T > &other) | |
Copy constructor (deep copy) | |
template<class W > | |
PoissonParam (const PoissonParam< W > &other) | |
PoissonParam< T > & | operator= (const PoissonParam< T > &other) |
Copy assignment (deep copy) | |
virtual | ~PoissonParam () |
Destructor. | |
virtual uInt | ndim () const |
Returns the number of dimensions of function. | |
virtual const String & | name () const |
Give name of function. | |
T | lambda () const |
Get or set lambda. | |
void | setLambda (const T &lambda) |
T | height () const |
void | setHeight (const T &height) |
A one dimensional Poisson function.
Internal
A 1-dimensional Poisson.
A Poisson
is described by lambda The value is:
height (|x-center| == 0.0) 0 (|x-center| != 0.0)
The parameters are enumerated by LAMDA. They have default values of 1.
PoissonFunction<Double> sf(5.0);
sf(25); // = 5.0
Definition at line 82 of file PoissonParam.h.
anonymous enum |
casa::PoissonParam< T >::PoissonParam | ( | ) |
Constructs the Poisson, Defaults: lambda=1.
Warning: Could not use default arguments that worked both with gcc and IRIX
casa::PoissonParam< T >::PoissonParam | ( | const T & | lambda | ) | [explicit] |
casa::PoissonParam< T >::PoissonParam | ( | const T & | lambda, |
const T & | height | ||
) |
casa::PoissonParam< T >::PoissonParam | ( | const PoissonParam< T > & | other | ) |
Copy constructor (deep copy)
casa::PoissonParam< T >::PoissonParam | ( | const PoissonParam< W > & | other | ) | [inline] |
Definition at line 104 of file PoissonParam.h.
virtual casa::PoissonParam< T >::~PoissonParam | ( | ) | [virtual] |
Destructor.
T casa::PoissonParam< T >::height | ( | ) | const [inline] |
Definition at line 132 of file PoissonParam.h.
Referenced by casa::PoissonParam< AutoDiff< T > >::setHeight().
T casa::PoissonParam< T >::lambda | ( | ) | const [inline] |
Get or set lambda.
Definition at line 125 of file PoissonParam.h.
Referenced by casa::PoissonParam< AutoDiff< T > >::setLambda().
virtual const String& casa::PoissonParam< T >::name | ( | ) | const [inline, virtual] |
Give name of function.
Reimplemented from casa::Function< T >.
Definition at line 118 of file PoissonParam.h.
virtual uInt casa::PoissonParam< T >::ndim | ( | ) | const [inline, virtual] |
Returns the number of dimensions of function.
Implements casa::Function< T >.
Definition at line 114 of file PoissonParam.h.
PoissonParam<T>& casa::PoissonParam< T >::operator= | ( | const PoissonParam< T > & | other | ) |
Copy assignment (deep copy)
void casa::PoissonParam< T >::setHeight | ( | const T & | height | ) | [inline] |
Definition at line 135 of file PoissonParam.h.
void casa::PoissonParam< T >::setLambda | ( | const T & | lambda | ) | [inline] |
Definition at line 128 of file PoissonParam.h.