Class MEAL::Polynomial
-
class Polynomial : public MEAL::Univariate<Scalar>
Polynomial function with an arbitrary number of coefficients.
Public Functions
-
Polynomial(unsigned ncoef = 0)
Default constructor.
-
Polynomial(const Polynomial&)
Copy constructor.
-
Polynomial &operator=(const Polynomial&)
Assignment operator.
-
virtual Polynomial *clone() const
Clone operator.
-
void resize(unsigned ncoef)
Resize.
-
template<class T>
inline Polynomial(const std::vector<T> &coefs) Construct from array of polynomial coefficients.
-
inline void set_abscissa_offset(double x0)
Setter.
-
virtual std::string get_name() const
Return the name of the class.
-
void set_param_name(unsigned icoeff, const std::string &name)
Set the parameter name of the specified coefficient.
-
virtual void parse(const std::string &text)
Parses the values of model parameters and fit flags from a string.
-
Polynomial(unsigned ncoef = 0)