NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::PolynomialLeastSquaresFitting Class Reference

#include <PolynomialLeastSquaresFitting.h>

Public Member Functions

void AddBoundaryCondition (std::pair< double, double > boundaryCondition)
 Adds a pair of x and y coordinates that should be matched by the polynomial. More...
 
void AddBoundaryCondition (double x, double y)
 Adds a pair of x and y coordinates that should be matched by the polynomial. More...
 
void BuildDerived ()
 determine regression parameters More...
 
Eigen::VectorXd GetPolynomialCoefficients () const
 Gets the calculated polynomial coefficients. More...
 
void SetDegree (int degree)
 Sets the degree of the polynomial. More...
 
void SolveTransformed (const Eigen::MatrixXd &inputCoordinates, Eigen::MatrixXd &outputCoordinates) const
 calculate approximation (in transformed space) More...
 
void SetSupportPoints (int dimInput, int dimOutput, Eigen::MatrixXd inputCoordinates, Eigen::MatrixXd outputCoordinates)
 

Member Function Documentation

void PolynomialLeastSquaresFitting::AddBoundaryCondition ( std::pair< double, double >  boundaryCondition)

Adds a pair of x and y coordinates that should be matched by the polynomial.

Parameters
boundaryConditiona pair of x and y coordinates that should be matched by the polynomial
void PolynomialLeastSquaresFitting::AddBoundaryCondition ( double  x,
double  y 
)

Adds a pair of x and y coordinates that should be matched by the polynomial.

Parameters
xthe x value of the boundary condition
ythe y value of the boundary condition
void PolynomialLeastSquaresFitting::BuildDerived ( )

determine regression parameters

Eigen::VectorXd PolynomialLeastSquaresFitting::GetPolynomialCoefficients ( ) const

Gets the calculated polynomial coefficients.

Returns
polynomial coefficients
void PolynomialLeastSquaresFitting::SetDegree ( int  degree)

Sets the degree of the polynomial.

Parameters
degreedegree of the polynomial
void PolynomialLeastSquaresFitting::SetSupportPoints ( int  dimInput,
int  dimOutput,
Eigen::MatrixXd  inputCoordinates,
Eigen::MatrixXd  outputCoordinates 
)
void PolynomialLeastSquaresFitting::SolveTransformed ( const Eigen::MatrixXd &  inputCoordinates,
Eigen::MatrixXd &  outputCoordinates 
) const

calculate approximation (in transformed space)

Parameters
inputCoordinatesmatrix of input data points (transformed)
outputCoordinatesvector of output data (transformed)

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