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
SimplexInterpolator Class Reference

Performs the simplical interplation between n+1 discrete samples in n dimensions. More...

#include <SimplexInterpolator.hh>

Public Member Functions

 SimplexInterpolator ()
 Default constructor, initilizes everything to 0. More...
 
 SimplexInterpolator (const std::vector< Vertex > &vertices)
 Normal constructor, sets the vector of vertices and their mapping. More...
 
 SimplexInterpolator (const SimplexInterpolator &sint)
 Copy constructor. More...
 
SimplexInterpolator & operator= (const SimplexInterpolator &sint)
 Equality operator. More...
 
double operator() (const std::vector< double > &v) const
 Function operator, executes evaluate. More...
 
 ~SimplexInterpolator ()
 Destructor. More...
 
void Initialize (const std::vector< Vertex > &vertices)
 Fit the n+1 vertices with a hyperplane, store the parameters. More...
 
double Evaluate (const std::vector< double > &v) const
 Performs the simplex interpolation at an n-point v. More...
 

Private Attributes

std::vector< double > _params
 (n+1)-vector of fitting parameters More...
 

Detailed Description

Performs the simplical interplation between n+1 discrete samples in n dimensions.

Constructor & Destructor Documentation

SimplexInterpolator::SimplexInterpolator ( )

Default constructor, initilizes everything to 0.

SimplexInterpolator::SimplexInterpolator ( const std::vector< Vertex > &  vertices)

Normal constructor, sets the vector of vertices and their mapping.

Parameters
verticesn+1 simplex n-vertices
SimplexInterpolator::SimplexInterpolator ( const SimplexInterpolator &  sint)

Copy constructor.

SimplexInterpolator::~SimplexInterpolator ( )

Destructor.

Member Function Documentation

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

Performs the simplex interpolation at an n-point v.

Parameters
vn-vector of coordinates of the n-point
Returns
Interpolated value of the function in v
void SimplexInterpolator::Initialize ( const std::vector< Vertex > &  vertices)

Fit the n+1 vertices with a hyperplane, store the parameters.

Parameters
verticesn+1 simplex n-points
Returns
True if successful
double SimplexInterpolator::operator() ( const std::vector< double > &  v) const
inline

Function operator, executes evaluate.

SimplexInterpolator & SimplexInterpolator::operator= ( const SimplexInterpolator &  sint)

Equality operator.

Field Documentation

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

(n+1)-vector of fitting parameters


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