Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

InterpolatorQuadratic Class Reference

#include <Interpolator.h>

Inheritance diagram for InterpolatorQuadratic:

Inheritance graph
[legend]
Collaboration diagram for InterpolatorQuadratic:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InterpolatorQuadratic (unsigned int dim, unsigned int num_samples=3)
 ~InterpolatorQuadratic ()
void Eval (float t, T *value)

Private Attributes

T * vec01
T * vec12

Detailed Description

Quadratic Interpolator.

Quadratic interpolation using Neville's formula to derive the code.

Todo:
It's a direct implementation of the formula, it CAN be optimized!


Constructor & Destructor Documentation

InterpolatorQuadratic::InterpolatorQuadratic unsigned int  dim,
unsigned int  num_samples = 3
[inline]
 

Constructor: num_samples must be >= 3

InterpolatorQuadratic::~InterpolatorQuadratic  )  [inline]
 


Member Function Documentation

void InterpolatorQuadratic::Eval float  t,
T *  value
[inline, virtual]
 

Evaluates the function in t using the specific interpolation method (defined in a subclass).

Implements Interpolator.


Member Data Documentation

T* InterpolatorQuadratic::vec01 [private]
 

T* InterpolatorQuadratic::vec12 [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 15:58:31 2004 for Saphyre2 by doxygen 1.3.5