Parameter handling for one-dimensional power logarithmic polynomials. More...
#include <PowerLogarithmicPolynomialParam.h>
Public Member Functions | |
PowerLogarithmicPolynomialParam () | |
Constructs a function with two coefficients, both 1 (so y = x). | |
PowerLogarithmicPolynomialParam (uInt n) | |
Makes a polynomial of the specified number of coefficients, all set to zero. | |
PowerLogarithmicPolynomialParam (const vector< T > &parms) | |
PowerLogarithmicPolynomialParam (const PowerLogarithmicPolynomialParam< T > &other) | |
Make this a copy of other (deep copy). | |
template<class W > | |
PowerLogarithmicPolynomialParam (const PowerLogarithmicPolynomialParam< W > &other) | |
PowerLogarithmicPolynomialParam < T > & | operator= (const PowerLogarithmicPolynomialParam< T > &other) |
virtual | ~PowerLogarithmicPolynomialParam () |
Destructor. | |
Bool | operator== (const PowerLogarithmicPolynomialParam< T > &other) const |
Comparisons. | |
Bool | operator!= (const PowerLogarithmicPolynomialParam< T > &other) const |
virtual const String & | name () const |
Give name of function. | |
T | coefficient (uInt which) const |
What is the which'th coefficient of the polynomial. | |
const Vector< T > & | coefficients () const |
Return all the coefficients as a vector. | |
void | setCoefficient (uInt which, const T value) |
Set the which'th coefficient to value. | |
void | setCoefficients (const Vector< T > &coefficients) |
Set all the coefficients at once, throw away all existing coefficients. |
Parameter handling for one-dimensional power logarithmic polynomials.
A 1-dimensional power logaritmic olynomial's parameters.
A power logarithmic polynomial
is described by a set of coefficients; its fundamental operation is evaluating itself at some "x".
Since the power logarithmic olynomial
is a Function
, the derivatives can be obtained as well.
The parameter interface (see FunctionParam class), is used to provide an interface to the Fitting classes.
This class is in general used implicitly by the PowerLogarithmicPolynomial
class only.
Definition at line 90 of file PowerLogarithmicPolynomialParam.h.
casacore::PowerLogarithmicPolynomialParam< T >::PowerLogarithmicPolynomialParam | ( | ) |
Constructs a function with two coefficients, both 1 (so y = x).
casacore::PowerLogarithmicPolynomialParam< T >::PowerLogarithmicPolynomialParam | ( | uInt | n | ) | [explicit] |
Makes a polynomial of the specified number of coefficients, all set to zero.
casacore::PowerLogarithmicPolynomialParam< T >::PowerLogarithmicPolynomialParam | ( | const vector< T > & | parms | ) |
casacore::PowerLogarithmicPolynomialParam< T >::PowerLogarithmicPolynomialParam | ( | const PowerLogarithmicPolynomialParam< T > & | other | ) |
Make this a copy of other (deep copy).
casacore::PowerLogarithmicPolynomialParam< T >::PowerLogarithmicPolynomialParam | ( | const PowerLogarithmicPolynomialParam< W > & | other | ) | [inline] |
Definition at line 105 of file PowerLogarithmicPolynomialParam.h.
virtual casacore::PowerLogarithmicPolynomialParam< T >::~PowerLogarithmicPolynomialParam | ( | ) | [virtual] |
Destructor.
T casacore::PowerLogarithmicPolynomialParam< T >::coefficient | ( | uInt | which | ) | const [inline] |
What is the which'th coefficient of the polynomial.
For an nth degree polynomial, which varies between zero and n.
Definition at line 129 of file PowerLogarithmicPolynomialParam.h.
const Vector<T>& casacore::PowerLogarithmicPolynomialParam< T >::coefficients | ( | ) | const |
Return all the coefficients as a vector.
virtual const String& casacore::PowerLogarithmicPolynomialParam< T >::name | ( | ) | const [inline, virtual] |
Give name of function.
Reimplemented from casacore::Function< T, U >.
Definition at line 124 of file PowerLogarithmicPolynomialParam.h.
Bool casacore::PowerLogarithmicPolynomialParam< T >::operator!= | ( | const PowerLogarithmicPolynomialParam< T > & | other | ) | const [inline] |
Definition at line 118 of file PowerLogarithmicPolynomialParam.h.
PowerLogarithmicPolynomialParam<T>& casacore::PowerLogarithmicPolynomialParam< T >::operator= | ( | const PowerLogarithmicPolynomialParam< T > & | other | ) |
Reimplemented in casacore::PowerLogarithmicPolynomial< T >.
Bool casacore::PowerLogarithmicPolynomialParam< T >::operator== | ( | const PowerLogarithmicPolynomialParam< T > & | other | ) | const [inline] |
Comparisons.
Definition at line 116 of file PowerLogarithmicPolynomialParam.h.
void casacore::PowerLogarithmicPolynomialParam< T >::setCoefficient | ( | uInt | which, | |
const T | value | |||
) | [inline] |
Set the which'th coefficient to value.
Definition at line 136 of file PowerLogarithmicPolynomialParam.h.
void casacore::PowerLogarithmicPolynomialParam< T >::setCoefficients | ( | const Vector< T > & | coefficients | ) |
Set all the coefficients at once, throw away all existing coefficients.