Go to the documentation of this file.
28 #ifndef SCIMATH_MATHFUNC_H
29 #define SCIMATH_MATHFUNC_H
35 #include <casacore/casa/aips.h>
36 #include <casacore/casa/BasicMath/Math.h>
37 #include <casacore/casa/BasicSL/Constants.h>
38 #include <casacore/casa/Exceptions/Error.h>
39 #include <casacore/casa/Arrays/Vector.h>
40 #include <casacore/casa/BasicSL/String.h>
160 MathFunc(FUNCTYPE, T cutoff, T arg1 = 1.0
e+30, T arg2 = 1.0
e+30,
541 #ifndef CASACORE_NO_AUTO_TEMPLATES
542 #include <casacore/scimath/Mathematics/MathFunc.tcc>
543 #endif //# CASACORE_NO_AUTO_TEMPLATES
544 #endif //AIPS_MATHFUNC_H
GaussianConv(const GaussianConv< T > &)
copy constructor
Mod_KB_Conv(T cut=MathFunc< T >::defcutoff(), T wparm=MathFunc< T >::defKBwidth(), T kbparm=MathFunc< T >::defKBparm(), T gwparm=MathFunc< T >::defmodKBparm())
default constructor
FuncId id() const
return FuncID structure for Table storage/retrieval.
MathFuncError(const String &m)
Int sphfn(Int *, Int *, Int *, float *, float *, Int *)
Fred Schwab function to calculate spheriodal functions, in C.
Enum used to identify function type for MathFunc class.
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
T value(const T &) const
compute and return a value of the math function
T value(const T &) const
and get the value of the function
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
T sup_value() const
return value of support width
MathFunc< T > * object
pointer to letter class
static T defSincparm()
The default Sinc parameter for Sinc_Conv and Exp_Sinc_Conv.
Sph_Conv(T cut=MathFunc< T >::defSphcutoff(), T Sphparm=MathFunc< T >::defSphparm())
default constructor
virtual ~MathFunc()
Destructor.
static T defKBwidth()
The default width for KB_Conv and Mod_KB_Conv.
Mod_KB_Conv(const Mod_KB_Conv< T > &)
copy constructor
ExpSincConv(T cut=MathFunc< T >::defcutoff(), T sincparm=MathFunc< T >::defSincparm(), T exppow=MathFunc< T >::defExpPower(), T expscale=MathFunc< T >::defExpScale())
default constructor
Sph_Conv(const Sph_Conv< T > &)
copy constructor
Sinc_Conv< T > & operator=(const Sinc_Conv< T > &)
Sinc_Conv(const Sinc_Conv< T > &)
copy constructor
static T defSphparm()
The default parameter for Sph_Conv.
MathFunc(FUNCTYPE, T cutoff, T arg1=1.0e+30, T arg2=1.0e+30, T arg3=1.0e+30)
accept up to 4 arguments, the first being the support radius
Unary(T cut=MathFunc< T >::defcutoff())
default constructor
virtual FuncId id() const
return a FuncId structure for Table storage/retrieval.
static MathFunc< T > * newMathFunc(const MathFunc< T > &)
create a new math function
ExpSincConv(const ExpSincConv< T > &)
copy constructor
Function ID, for use by MathFunc class.
KB_Conv(const KB_Conv< T > &)
copy constructor
A class to generate values of mathematical functions.
T sup_value() const
return value of support width
T value(const T &) const
compute and return a value of the math function
FuncId id() const
return a FuncId structure for Table storage/retrieval.
Sinc_Conv(T cut=MathFunc< T >::defSphcutoff(), T sincparm=MathFunc< T >::defSincparm())
default constructor
T value(const T &) const
compute and return a value of the math function
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
static T defcutoff()
These functions return the static constants used as default parameters for the various derived functi...
Sph_Conv< T > & operator=(const Sph_Conv< T > &)
static T defExpPower()
The default exponential power for Exp_Sinc_Conv.
float value(const float &) const
KB_Conv< T > & operator=(const KB_Conv< T > &)
GaussianConv< T > & operator=(const GaussianConv< T > &)
MathFunc(const MathFunc< T > &)
KB_Conv(T cut=MathFunc< T >::defcutoff(), T wparm=MathFunc< T >::defKBwidth(), T kbparm=MathFunc< T >::defKBparm())
default constructor
virtual MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
this file contains all the compiler specific defines
Unary(const Unary< T > &)
copy constructor
virtual ~MathFuncError() noexcept
float sphfn(Int ialf, Int im, float eta)
C++ wrapper to Fred Schwab function to calculate spheriodal functions.
Fred Schwab function to calculate spheriodal functions.
FuncId id() const
return a FuncId structure for Table storage/retrieval.
T sup_value() const
return value of support width
FuncId id() const
return a FuncId structure for Table storage/retrieval.
MathFunc(FUNCTYPE)
constructors
T sup_value() const
return value of support width
T sup_value() const
return value of support width
virtual T value(const T &a) const
compute and return a value of the math function
T sup_value() const
return value of support width
Exponential times a Sinc.
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
static T defmodKBparm()
A default parameter for Mod_KB_Conv.
const Double e
e and functions thereof:
static T defExpScale()
The default exponential scale length for Exp_Sinc_Conv.
Unary< T > & operator=(const Unary< T > &)
MathFunc(String &, Vector< double > &)
T value(const T &) const
compute and return a value of the math function
GaussianConv(T cut=MathFunc< T >::defcutoff(), T wparm=MathFunc< T >::defwidth())
default constructor
FuncId id() const
return a FuncId structure for Table storage/retrieval.
virtual T sup_value() const
return value of support width
MathFunc< T > & operator=(const MathFunc< T > &)
Assignment operator - Note: this function works only for envelops.
static T defSphcutoff()
The default support radius for Sinc_Conv and Sph_Conv.
FuncId id() const
return a FuncId structure for Table storage/retrieval.
T sup_value() const
get access to the support width
Mod_KB_Conv< T > & operator=(const Mod_KB_Conv< T > &)
String: the storage and methods of handling collections of characters.
MathFuncError(const Char *m)
Error class for MathFunc class.
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
T value(const T &) const
compute and return a value of the math function
A Kaiser-Bessel function.
ExpSincConv< T > & operator=(const ExpSincConv< T > &)
assignment operator
MathFunc(MathFunc< T > *)
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
MathFunc< T > * clone() const
for every derived class, return new of that class with its own parameters
static T defwidth()
The default width for Gaussian_Conv.
static T defKBparm()
A default parameter for KB_Conv and Mod_KB_Conv.
FuncId id() const
return a FuncId structure for Table storage/retrieval.
Base class for all Casacore library errors.
A Kaiser-Bessel function multiplied by a Gaussian.
MathFunc()
Default constructor (Null)