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