Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1UnaryParam.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 21:38:55 2011 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п |
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 |
casa::UnaryParam< T >::UnaryParam | ( | ) |
Constructs the Unary, Defaults: height=1, center=0, width=1.
Warning: Could not use default arguments that worked both with gcc and IRIX
casa::UnaryParam< T >::UnaryParam | ( | const T & | height | ) | [explicit] |
casa::UnaryParam< T >::UnaryParam | ( | const T & | height, | |
const T & | center | |||
) |
casa::UnaryParam< T >::UnaryParam | ( | const T & | height, | |
const T & | center, | |||
const T & | width | |||
) |
casa::UnaryParam< T >::UnaryParam | ( | const UnaryParam< T > & | other | ) |
Copy constructor (deep copy).
casa::UnaryParam< T >::UnaryParam | ( | const UnaryParam< W > & | other | ) | [inline] |
Definition at line 108 of file UnaryParam.h.
virtual casa::UnaryParam< T >::~UnaryParam | ( | ) | [virtual] |
Destructor.
virtual const String& casa::UnaryParam< T >::name | ( | ) | const [inline, virtual] |
Give name of function.
Reimplemented from casa::Function< T >.
Definition at line 123 of file UnaryParam.h.
virtual uInt casa::UnaryParam< T >::ndim | ( | ) | const [inline, virtual] |
Returns the number of dimensions of function.
Implements casa::Function< T >.
Definition at line 119 of file UnaryParam.h.
UnaryParam<T>& casa::UnaryParam< T >::operator= | ( | const UnaryParam< T > & | other | ) |
Copy assignment (deep copy).