A one dimensional power logarithmic polynomial class of form y = c_0 * x**( c_1 + c_2*ln(x) + c_3*ln(x)**2 + ... c_n*ln(x)**(n-1)). More...
#include <PowerLogarithmicPolynomial.h>
Public Member Functions | |
PowerLogarithmicPolynomial () | |
Constructs an empty PowerLogarithmicPolynomial. | |
PowerLogarithmicPolynomial (uInt n) | |
Makes a power logaritmic polynomial with the specified number of coefficients, all set to zero. | |
PowerLogarithmicPolynomial (const vector< T > &parms) | |
Make a function with the specified params. | |
PowerLogarithmicPolynomial (const PowerLogarithmicPolynomial< T > &other) | |
Copy constructor/assignment (deep copy). | |
template<class W > | |
PowerLogarithmicPolynomial (const PowerLogarithmicPolynomial< W > &other) | |
PowerLogarithmicPolynomial< T > & | operator= (const PowerLogarithmicPolynomial< T > &other) |
virtual | ~PowerLogarithmicPolynomial () |
Destructor. | |
virtual T | eval (typename Function1D< T >::FunctionArg x) const |
Evaluate the polynomial at x . | |
virtual Function< T > * | clone () const |
Return a copy of this object from the heap. | |
virtual Function< typename FunctionTraits< T >::DiffType > * | cloneAD () const |
virtual Function< typename FunctionTraits< T >::BaseType > * | cloneNonAD () const |
A one dimensional power logarithmic polynomial class of form y = c_0 * x**( c_1 + c_2*ln(x) + c_3*ln(x)**2 + ... c_n*ln(x)**(n-1)).
A Power Logarithmic Polynomial<T> contains a set of coefficients; its fundamental operations is evaluating itself at some "x".
Tip: The present implementation merely stores the coefficients in a Block; In the unlikely case that we need to deal with polynomials with many zero coefficients, a more efficient representation would be possible;
Definition at line 80 of file PowerLogarithmicPolynomial.h.
casacore::PowerLogarithmicPolynomial< T >::PowerLogarithmicPolynomial | ( | ) | [inline] |
Constructs an empty PowerLogarithmicPolynomial.
Definition at line 84 of file PowerLogarithmicPolynomial.h.
casacore::PowerLogarithmicPolynomial< T >::PowerLogarithmicPolynomial | ( | uInt | n | ) | [inline, explicit] |
Makes a power logaritmic polynomial with the specified number of coefficients, all set to zero.
Definition at line 88 of file PowerLogarithmicPolynomial.h.
casacore::PowerLogarithmicPolynomial< T >::PowerLogarithmicPolynomial | ( | const vector< T > & | parms | ) | [inline] |
Make a function with the specified params.
Definition at line 91 of file PowerLogarithmicPolynomial.h.
casacore::PowerLogarithmicPolynomial< T >::PowerLogarithmicPolynomial | ( | const PowerLogarithmicPolynomial< T > & | other | ) | [inline] |
Copy constructor/assignment (deep copy).
Definition at line 95 of file PowerLogarithmicPolynomial.h.
casacore::PowerLogarithmicPolynomial< T >::PowerLogarithmicPolynomial | ( | const PowerLogarithmicPolynomial< W > & | other | ) | [inline] |
Definition at line 97 of file PowerLogarithmicPolynomial.h.
virtual casacore::PowerLogarithmicPolynomial< T >::~PowerLogarithmicPolynomial | ( | ) | [inline, virtual] |
Destructor.
Definition at line 103 of file PowerLogarithmicPolynomial.h.
virtual Function<T>* casacore::PowerLogarithmicPolynomial< T >::clone | ( | ) | const [inline, virtual] |
Return a copy of this object from the heap.
The caller is responsible for deleting the pointer.
Implements casacore::Function< T, U >.
Definition at line 113 of file PowerLogarithmicPolynomial.h.
virtual Function<typename FunctionTraits<T>::DiffType>* casacore::PowerLogarithmicPolynomial< T >::cloneAD | ( | ) | const [inline, virtual] |
Reimplemented from casacore::Function< T, U >.
Definition at line 114 of file PowerLogarithmicPolynomial.h.
virtual Function<typename FunctionTraits<T>::BaseType>* casacore::PowerLogarithmicPolynomial< T >::cloneNonAD | ( | ) | const [inline, virtual] |
Reimplemented from casacore::Function< T, U >.
Definition at line 116 of file PowerLogarithmicPolynomial.h.
virtual T casacore::PowerLogarithmicPolynomial< T >::eval | ( | typename Function1D< T >::FunctionArg | x | ) | const [virtual] |
Evaluate the polynomial at x
.
PowerLogarithmicPolynomial<T>& casacore::PowerLogarithmicPolynomial< T >::operator= | ( | const PowerLogarithmicPolynomial< T > & | other | ) | [inline] |
Reimplemented from casacore::PowerLogarithmicPolynomialParam< T >.
Definition at line 98 of file PowerLogarithmicPolynomial.h.