$search

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

Parameters:
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 Typedefs Enumerations Properties Friends Defines


art_common
Author(s): Austin Robot Technology
autogenerated on Fri Mar 1 14:12:15 2013