Parameter handling for one dimensional unary function. More...
#include <UnaryParam.h>
Public Types | |
| enum | { HEIGHT, CENTER, WIDTH } |
Parameter numbers. More... | |
Public Member Functions | |
| UnaryParam () | |
| Constructs the Unary, Defaults: height=1, center=0, width=1. | |
| UnaryParam (const T &height) | |
| UnaryParam (const T &height, const T ¢er) | |
| UnaryParam (const T &height, const T ¢er, const T &width) | |
| UnaryParam (const UnaryParam< T > &other) | |
| Copy constructor (deep copy). | |
| template<class W > | |
| UnaryParam (const UnaryParam< W > &other) | |
| UnaryParam< T > & | operator= (const UnaryParam< T > &other) |
| Copy assignment (deep copy). | |
| virtual | ~UnaryParam () |
| Destructor. | |
| virtual uInt | ndim () const |
| Returns the number of dimensions of function. | |
| virtual const String & | name () const |
| Give name of function. | |
Parameter handling for one dimensional unary function.
Internal
A 1-dimensional unary hat.
A Unary is described by a height, a center and a width (halfwidth). The value is:
height (|x-center| < width) 0.5height (|x-center| == width) 0 (|x-center| > width)
The parameters are enumerated by HEIGHT, CENTER and WIDTH. They have default values of (1, 0, 1).
UnaryFunction<Double> sf(5.0, 25.0, 7);
sf(25); // = 5.0
Definition at line 85 of file UnaryParam.h.
| anonymous enum |
| casacore::UnaryParam< T >::UnaryParam | ( | ) |
| casacore::UnaryParam< T >::UnaryParam | ( | const T & | height | ) | [explicit] |
| casacore::UnaryParam< T >::UnaryParam | ( | const T & | height, | |
| const T & | center | |||
| ) |
| casacore::UnaryParam< T >::UnaryParam | ( | const T & | height, | |
| const T & | center, | |||
| const T & | width | |||
| ) |
| casacore::UnaryParam< T >::UnaryParam | ( | const UnaryParam< T > & | other | ) |
Copy constructor (deep copy).
| casacore::UnaryParam< T >::UnaryParam | ( | const UnaryParam< W > & | other | ) | [inline] |
Definition at line 108 of file UnaryParam.h.
| virtual casacore::UnaryParam< T >::~UnaryParam | ( | ) | [virtual] |
Destructor.
| virtual const String& casacore::UnaryParam< T >::name | ( | ) | const [inline, virtual] |
Give name of function.
Reimplemented from casacore::Function< T >.
Definition at line 123 of file UnaryParam.h.
| virtual uInt casacore::UnaryParam< T >::ndim | ( | ) | const [inline, virtual] |
Returns the number of dimensions of function.
Implements casacore::Function< T >.
Definition at line 119 of file UnaryParam.h.
| UnaryParam<T>& casacore::UnaryParam< T >::operator= | ( | const UnaryParam< T > & | other | ) |
Copy assignment (deep copy).
Reimplemented in casacore::UnaryFunction< T >.
1.6.1