Public Member Functions | Public Attributes | Protected Attributes
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)
 Constructor.
float value (const float x)
 evaluate polynomial
virtual ~Polynomial ()

Public Attributes

std::vector< float > coef

Protected Attributes

char name [POLYNOMIAL_NAME_SIZE]

Detailed Description

polynomial interface

Definition at line 26 of file polynomial.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
pnamepolynomial 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

Parameters:
xpoint 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.

polynomial name

Definition at line 92 of file polynomial.h.


The documentation for this class was generated from the following file:


art_common
Author(s): Austin Robot Technology
autogenerated on Fri Jan 3 2014 11:08:22