Go to the documentation of this file.
28 #ifndef SCIMATH_POLYNOMIALPARAM_H
29 #define SCIMATH_POLYNOMIALPARAM_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/String.h>
34 #include <casacore/casa/Utilities/Assert.h>
35 #include <casacore/scimath/Functionals/Function1D.h>
40 template<
class T>
class Vector;
165 #ifndef CASACORE_NO_AUTO_TEMPLATES
166 #include <casacore/scimath/Functionals/PolynomialParam.tcc>
167 #endif //# CASACORE_NO_AUTO_TEMPLATES
T coefficient(uInt which) const
What is the which'th coefficient of the polynomial.
PolynomialParam< T > & operator=(const PolynomialParam< T > &other)
PolynomialParam(const PolynomialParam< T > &other)
Make this a copy of other (deep copy).
~PolynomialParam()
Destructor.
void setCoefficient(uInt which, const T value)
Set the which'th coefficient to value.
PolynomialParam(const PolynomialParam< W > &other)
Bool operator!=(const PolynomialParam< T > &other) const
PolynomialParam()
Constructs a zero'th order polynomial, with a coeficcient of 0.0.
const Vector< T > & coefficients() const
Return all the coefficients as a vector.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
#define DebugAssert(expr, exception)
FunctionParam< T > param_p
The parameters and masks.
virtual const String & name() const
Give name of function.
this file contains all the compiler specific defines
Bool operator==(const PolynomialParam< T > &other) const
Comparisons.
void setCoefficients(const Vector< T > &coefficients)
Set all the coefficients at once, throw away all existing coefficients.
String: the storage and methods of handling collections of characters.
Numerical functional interface class for 1 dimension.
bool Bool
Define the standard types used by Casacore.
PolynomialParam(uInt order)
Makes a polynomial of the given order, with all coeficcients set to zero.
uInt order() const
What is the order of the polynomial, i.e.
A 1-D Specialization of the Array class.
Base class for all Casacore library errors.
Parameter handling for one-dimensional polynomials.