26#ifndef SCIMATH_SPOLYNOMIALPARAM_H
27#define SCIMATH_SPOLYNOMIALPARAM_H
30#include <casacore/casa/aips.h>
31#include <casacore/scimath/Functionals/Function.h>
32#include <casacore/casa/BasicSL/String.h>
33#include <casacore/casa/Utilities/Assert.h>
34#include <casacore/casa/Arrays/ArrayFwd.h>
167#ifndef CASACORE_NO_AUTO_TEMPLATES
168#include <casacore/scimath/Functionals/SPolynomialParam.tcc>
#define DebugAssert(expr, exception)
FunctionParam< T > param_p
The parameters and masks.
Bool & mask(const uInt n)
Manipulate the mask associated with the nth parameter (e.g.
uInt nparameters() const
Returns the number of parameters.
SPolynomialParam< T > & operator=(const SPolynomialParam< T > &other)
T coefficient(uInt which) const
What is the which'th coefficient of the polynomial.
virtual uInt ndim() const
Returns the dimension of function.
SPolynomialParam(uInt order)
Makes a polynomial of the given order, with all coeficcients set to zero.
~SPolynomialParam()
Destructor.
void setCoefficient(uInt which, const T value)
Set the which'th coefficient to value.
Bool operator==(const SPolynomialParam< T > &other) const
Comparisons.
SPolynomialParam(const SPolynomialParam< T > &other)
Make this a copy of other (deep copy).
Bool operator!=(const SPolynomialParam< T > &other) const
uInt order() const
What is the order of the polynomial, i.e.
SPolynomialParam()
Constructs a zero'th order polynomial, with a coeficcient of 0.0.
SPolynomialParam(const SPolynomialParam< W > &other)
Vector< T > coefficients() const
Return all the coefficients as a vector.
void setCoefficients(const Vector< T > &coefficients)
Set all the coefficients at once, throw away all existing coefficients.
virtual const String & name() const
Give name of function.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.