Polynomial Class Reference

polynomial interface More...

#include <polynomial.h>

List of all members.

Public Member Functions

void add_coef (float term)
 Add default coefficient.
 Polynomial (const char *pname)
float value (const float x)
 evaluate polynomial
virtual ~Polynomial ()

Public Attributes

std::vector< float > coef

Protected Attributes


Detailed Description

polynomial interface

Definition at line 26 of file polynomial.h.

Constructor & Destructor Documentation

Polynomial::Polynomial ( const char *  pname  )  [inline]


pname polynomial name

Definition at line 33 of file polynomial.h.

virtual Polynomial::~Polynomial (  )  [inline, virtual]

Definition at line 39 of file polynomial.h.

Member Function Documentation

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.

Member Data Documentation

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.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Defines

Author(s): Austin Robot Technology
autogenerated on Fri Jan 11 10:02:52 2013