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>
78 float sphfn(
Int ialf,
Int im,
float eta);
160 MathFunc(FUNCTYPE, T cutoff, T arg1 = 1.0
e+30, T arg2 = 1.0
e+30,
186 virtual T
value(
const T &a)
const;
283 T
value(
const T &)
const;
323 T
value(
const T &)
const;
362 T
value(
const T &)
const;
401 T
value(
const T &)
const;
437 T
value(
const T &)
const;
475 float value(
const float &)
const;
525 T
value(
const T &)
const;
541 #ifndef CASACORE_NO_AUTO_TEMPLATES
542 #include <casacore/scimath/Mathematics/MathFunc.tcc>
543 #endif //# CASACORE_NO_AUTO_TEMPLATES
544 #endif //AIPS_MATHFUNC_H
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.
ExpSincConv(T cut=MathFunc< T >::defcutoff(), T sincparm=MathFunc< T >::defSincparm(), T exppow=MathFunc< T >::defExpPower(), T expscale=MathFunc< T >::defExpScale())
default constructor
Sinc_Conv< T > & operator=(const Sinc_Conv< T > &)
static T defSphparm()
The default parameter for Sph_Conv.
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
Function ID, for use by MathFunc class.
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 > &)
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
virtual ~MathFuncError() noexcept
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.
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 > &)
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< 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)