$search
polynomial interface More...
#include <polynomial.h>
Public Member Functions | |
void | add_coef (float term) |
Add default coefficient. | |
Polynomial (const char *pname) | |
Constructor. | |
float | value (const float x) |
evaluate polynomial | |
virtual | ~Polynomial () |
Public Attributes | |
std::vector< float > | coef |
Protected Attributes | |
char | name [POLYNOMIAL_NAME_SIZE] |
polynomial interface
Definition at line 26 of file polynomial.h.
Polynomial::Polynomial | ( | const char * | pname | ) | [inline] |
virtual Polynomial::~Polynomial | ( | ) | [inline, virtual] |
Definition at line 39 of file polynomial.h.
void Polynomial::add_coef | ( | float | term | ) | [inline] |
Add default coefficient.
first call adds constant term each successive call adds increasing powers of x
Definition at line 46 of file polynomial.h.
float Polynomial::value | ( | const float | x | ) | [inline] |
evaluate polynomial
x | point at which to evaluate |
Definition at line 75 of file polynomial.h.
std::vector<float> Polynomial::coef |
polynomial coefficients
Definition at line 88 of file polynomial.h.
char Polynomial::name[POLYNOMIAL_NAME_SIZE] [protected] |
polynomial name
Definition at line 92 of file polynomial.h.