scsolver::numeric::PolyEqnSolver Class Reference

#include <polyeqnsolver.hxx>

List of all members.

Public Member Functions

 PolyEqnSolver ()
 ~PolyEqnSolver () throw ()
void addDataPoint (double x, double y)
const Matrix solve ()
void clear ()
size_t size () const

Private Attributes

::std::list< DataPointm_DataPoints


Detailed Description

This class is used to solve a polynomial equation of an arbitrary degree based on a set of data points. It returns an array of coefficients from the lowest order to highest, and the order of the equation equals the number of data points minus 1 e.g. if two data points are given, the equation to be solved will be linear, if three data points are given, the equation will be quadratic, and so on.

Definition at line 60 of file polyeqnsolver.hxx.


Constructor & Destructor Documentation

scsolver::numeric::PolyEqnSolver::PolyEqnSolver (  ) 

Definition at line 46 of file polyeqnsolver.cxx.

scsolver::numeric::PolyEqnSolver::~PolyEqnSolver (  )  throw ()

Definition at line 50 of file polyeqnsolver.cxx.


Member Function Documentation

void scsolver::numeric::PolyEqnSolver::addDataPoint ( double  x,
double  y 
)

Definition at line 54 of file polyeqnsolver.cxx.

References m_DataPoints.

Referenced by scsolver::numeric::QuadFitLineSearch::solve().

const Matrix scsolver::numeric::PolyEqnSolver::solve (  ) 

Definition at line 60 of file polyeqnsolver.cxx.

References scsolver::numeric::Matrix::inverse(), and m_DataPoints.

Referenced by scsolver::numeric::QuadFitLineSearch::solve().

void scsolver::numeric::PolyEqnSolver::clear (  ) 

Definition at line 85 of file polyeqnsolver.cxx.

References m_DataPoints.

size_t scsolver::numeric::PolyEqnSolver::size (  )  const

Return the number of data points.

Returns:
size_t

Definition at line 90 of file polyeqnsolver.cxx.

References m_DataPoints.


Member Data Documentation

::std::list<DataPoint> scsolver::numeric::PolyEqnSolver::m_DataPoints [private]

Definition at line 78 of file polyeqnsolver.hxx.

Referenced by addDataPoint(), clear(), size(), and solve().


The documentation for this class was generated from the following files:
Generated on Mon Jul 28 09:13:50 2008 for scsolver by  doxygen 1.5.3