casa
$Rev:20696$
|
A one dimensional Dirac delta function. More...
#include <DiracDFunction.h>
Public Member Functions | |
DiracDFunction () | |
Constructs the DiracDFunction, Defaults: height=1, center=0. | |
DiracDFunction (const T &height) | |
DiracDFunction (const T &height, const T ¢er) | |
DiracDFunction (const DiracDFunction< T > &other) | |
Copy constructor (deep copy) | |
template<class W > | |
DiracDFunction (const DiracDFunction< W > &other) | |
DiracDFunction< T > & | operator= (const DiracDFunction< T > &other) |
Copy assignment (deep copy) | |
virtual | ~DiracDFunction () |
Destructor. | |
virtual T | eval (typename Function< T >::FunctionArg x) const |
Evaluate the DiracD 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 Dirac delta function.
Public interface
A 1-dimensional Dirac delta.
A DiracD
is described by a height, a center and a width (halfwidth). The value is:
height (|x-center| == 0.0) 0 (|x-center| != 0.0)
The parameters are enumerated by HEIGHT, CENTER and WIDTH. They have default values of (1, 0).
DiracDFunction<Double> sf(5.0, 25.0);
sf(25); // = 5.0
Definition at line 85 of file DiracDFunction.h.
casa::DiracDFunction< T >::DiracDFunction | ( | ) | [inline] |
Constructs the DiracDFunction, Defaults: height=1, center=0.
Warning: Could not use default arguments that worked both with gcc and IRIX
Definition at line 94 of file DiracDFunction.h.
casa::DiracDFunction< T >::DiracDFunction | ( | const T & | height | ) | [inline, explicit] |
Definition at line 95 of file DiracDFunction.h.
casa::DiracDFunction< T >::DiracDFunction | ( | const T & | height, |
const T & | center | ||
) | [inline] |
Definition at line 97 of file DiracDFunction.h.
casa::DiracDFunction< T >::DiracDFunction | ( | const DiracDFunction< T > & | other | ) | [inline] |
Copy constructor (deep copy)
Definition at line 103 of file DiracDFunction.h.
casa::DiracDFunction< T >::DiracDFunction | ( | const DiracDFunction< W > & | other | ) | [inline] |
Definition at line 105 of file DiracDFunction.h.
virtual casa::DiracDFunction< T >::~DiracDFunction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 113 of file DiracDFunction.h.
virtual Function<T>* casa::DiracDFunction< 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 126 of file DiracDFunction.h.
virtual Function<typename FunctionTraits<T>::DiffType>* casa::DiracDFunction< T >::cloneAD | ( | ) | const [inline, virtual] |
Reimplemented from casa::Function< T >.
Definition at line 127 of file DiracDFunction.h.
virtual Function<typename FunctionTraits<T>::BaseType>* casa::DiracDFunction< T >::cloneNonAD | ( | ) | const [inline, virtual] |
Reimplemented from casa::Function< T >.
Definition at line 129 of file DiracDFunction.h.
virtual T casa::DiracDFunction< T >::eval | ( | typename Function< T >::FunctionArg | x | ) | const [virtual] |
Evaluate the DiracD at x
.
If a vector is used as the argument only its first element is used.
DiracDFunction<T>& casa::DiracDFunction< T >::operator= | ( | const DiracDFunction< T > & | other | ) | [inline] |
Copy assignment (deep copy)
Definition at line 109 of file DiracDFunction.h.