List of all members.
Public Member Functions
|Polynomius (const Polynomius &polynomius)|
|Copy constructor. |
|Polynomius (const Float &constant_value)|
|Float||evaluate (const Float &variable_value) const|
|Evaluates the polynomius. |
|Polynomius||derive () const|
|Derives the polynomius. |
|const UnsignedInt||getDegree () const|
|Returns the polynomius degree. |
|const std::vector< Float > &||getCoefficients () const|
|Returns the vector of coefficients. |
|void||setCoefficients (const std::vector< Float > &coeffcients)|
|Sets the vector of coefficients. |
|std::vector< Float >||_coefficients|
|Polynomius||operator+ (const Polynomius &first_polynomius_addendum, const Polynomius &second_polynomius_addendum)|
|Returns the sum of two polynomius. |
|Polynomius||operator * (const Polynomius &polynomius, const Float &scalar_value)|
|Returns the product of a polynomius by a scalar value. |
|Polynomius||promote (const Polynomius &polynomius)|
|Returns the polynomius polynomius with degree incremented by 1. |
A polynomius could be considered as a vector of coefficients, where the first element is the coefficent of the polynomius' variable having bigger exponent and the last element is the coeffcient of the polynomius variable having the exponent equal to 0. Note that the degree of the polynomius is the vector of coefficients size minus 1.
Pushes back into the vector of coefficients the value 0, that is the polynomius correspond to the value 0. Let's this polynomius p(x) then this constructor sets p(x)=0.
|nmn::Polynomius::Polynomius||(||const Polynomius &||polynomius||)|
|polynomius||polynomius to be copied. Does a hard copy of the polynomius vector of coefficients.|
|nmn::Polynomius::Polynomius||(||const Float &||constant_value||)|
|constant_value||constant value for polynomius initialization.|
Derives the polynomius.
Evaluates the derivative of the polynomius by setting the vector of coefficients properly.
Evaluates the polynomius.
Evaluates the polynomius for a fixed value of the polynomius' variable. Let's this polynomius p(x) then this method returns p(variable_value).
|const std::vector< Float > & nmn::Polynomius::getCoefficients||(||)||const|
Returns the vector of coefficients.
|const UnsignedInt nmn::Polynomius::getDegree||(||)||const|
Returns the polynomius degree.
Returns the polynomius' degree that is the size of the vector of coefficients minus 1.
|void nmn::Polynomius::setCoefficients||(||const std::vector< Float > &||coeffcients||)|
Sets the vector of coefficients.
Returns the product of a polynomius by a scalar value.
|polynomius||polynomius to be multiplied|
|scalar_value||scalar value's going to multiply|
|Polynomius operator+||(||const Polynomius &||first_polynomius_addendum,|
|const Polynomius &||second_polynomius_addendum|
Returns the sum of two polynomius.
|first_polynomius_addendum||first polynomius addendum|
|second_polynomius_addendum||second polynomius addendum|
Returns the polynomius polynomius with degree incremented by 1.
|polynomius||polynomius to promote at higher degree|