Class MEAL::SingleAxisPolynomial
-
class SingleAxisPolynomial : public MEAL::ChainRule<MEAL::Complex2>
A SingleAxis parameterized by Polynomial ordinates.
This class provides an example use of the ChainRule class. The SingleAxis Complex2 is used so that the gain, differential gain, and differential phase vary separately as polynomial functions of an independent variable. This class is used in test_ReceptionModel as a verification of the underlying assumptions of the ChainRule.
Public Functions
-
SingleAxisPolynomial(unsigned ncoef = 0)
Default constructor.
-
SingleAxisPolynomial(const SingleAxisPolynomial&)
Copy constructor.
-
SingleAxisPolynomial &operator=(const SingleAxisPolynomial&)
Assignment operator.
-
~SingleAxisPolynomial()
Destructor.
-
void set_abscissa(double value)
Set the abscissa of each of the Polynomial functions.
-
void set_infit(unsigned coef, bool fit)
Set the fit flag for the specified coefficient of each Polynomial.
-
void random(double max_result, double max_abscissa)
Generate random Polynomial coefficients.
-
virtual std::string get_name() const
Return the name of the class.
Public Static Attributes
-
static const unsigned npoly
The number of free parameters in the SingleAxis model.
-
SingleAxisPolynomial(unsigned ncoef = 0)