SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Attributes
LinearInterpolator Class Reference

Performs the linear interpolation between discrete samples of a scalar field organised on an n-orthotope. More...

#include <LinearInterpolator.hh>

Public Member Functions

 LinearInterpolator ()
 Default constructor, initilizes everything to 0. More...
 
 LinearInterpolator (const Grid &grid)
 Normal constructor, sets matrix of vertices and their mapping. More...
 
 LinearInterpolator (const LinearInterpolator &lint)
 Copy constructor. More...
 
LinearInterpolator & operator= (const LinearInterpolator &lint)
 Equality operator. More...
 
double operator() (const std::vector< double > &v) const
 Function operator, executes evaluate. More...
 
 ~LinearInterpolator ()
 Destructor. More...
 
void Initialize (const Grid &grid)
 Fit the 2^n vertices with an (n-1)-spline, store the parameters. More...
 
double Evaluate (const std::vector< double > &v) const
 Performs the linear interpolation at an n-point P. More...
 

Private Attributes

size_t _dim
 Dimension of the space. More...
 
std::vector< double > _params
 2^n-matrix vector More...
 

Detailed Description

Performs the linear interpolation between discrete samples of a scalar field organised on an n-orthotope.

Constructor & Destructor Documentation

LinearInterpolator::LinearInterpolator ( )

Default constructor, initilizes everything to 0.

LinearInterpolator::LinearInterpolator ( const Grid &  grid)

Normal constructor, sets matrix of vertices and their mapping.

Parameters
grid2^n vertices of an n-orthotope
LinearInterpolator::LinearInterpolator ( const LinearInterpolator &  lint)

Copy constructor.

LinearInterpolator::~LinearInterpolator ( )

Destructor.

Member Function Documentation

double LinearInterpolator::Evaluate ( const std::vector< double > &  v) const

Performs the linear interpolation at an n-point P.

Parameters
vVector of coordinates of the n-point
Returns
Interpolated value of the function in P
void LinearInterpolator::Initialize ( const Grid &  grid)

Fit the 2^n vertices with an (n-1)-spline, store the parameters.

Returns
True if successful
double LinearInterpolator::operator() ( const std::vector< double > &  v) const
inline

Function operator, executes evaluate.

LinearInterpolator & LinearInterpolator::operator= ( const LinearInterpolator &  lint)

Equality operator.

Field Documentation

size_t LinearInterpolator::_dim
private

Dimension of the space.

std::vector<double> LinearInterpolator::_params
private

2^n-matrix vector


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