template<class T>
class gismo::gsFitting< T >
Class for performing a least squares fit of a parametrized point cloud with a gsGeometry.
|
void | applySmoothing (T lambda, gsSparseMatrix< T > &A_mat) |
|
void | assembleSystem (gsSparseMatrix< T > &A_mat, gsMatrix< T > &B) |
| Assembles system for the least square fit.
|
|
void | compute (T lambda=0) |
| Computes the least squares fit for a gsBasis.
|
|
void | computeApproxError (T &error, int type=0) const |
| Computes the approximation error of the fitted curve to the original point cloud.
|
|
void | computeErrors () |
| Computes the euclidean error for each point.
|
|
void | computeMaxNormErrors () |
| Computes the maximum norm error for each point.
|
|
void | get_Error (std::vector< T > &errors, int type=0) const |
| return the errors for each point
|
|
const gsBasis< T > & | getBasis () const |
| Returns the basis of the approximation.
|
|
gsMatrix< T > & | getreturnParamValues () |
| returns the parameter values
|
|
| gsFitting () |
| default constructor
|
|
| gsFitting (gsMatrix< T > const ¶m_values, gsMatrix< T > const &points, gsBasis< T > &basis) |
| constructor
|
|
| gsFitting (gsMatrix< T > const ¶m_values, gsMatrix< T > const &points, gsVector< index_t > offset, gsMappedBasis< 2, T > &mbasis) |
| constructor
|
|
void | iterativeCompute (T const &tolerance, unsigned const &num_iters=10) |
| Computes the least squares fit for a gsBasis.
|
|
T | maxPointError () const |
| Returns the maximum point-wise error from the pount cloud (or zero if not fitted)
|
|
T | minPointError () const |
| Returns the minimum point-wise error from the pount cloud (or zero if not fitted)
|
|
const gsMappedSpline< 2, T > & | mresult () const |
| gives back the computed approximation for multipatch geometry
|
|
size_t | numPointsBelow (T threshold) const |
| Computes the number of points below the error threshold (or zero if not fitted)
|
|
const std::vector< T > & | pointWiseErrors () const |
| Return the errors for each point.
|
|
gsGeometry< T > * | result () const |
| gives back the computed approximation
|
|
gsMatrix< T > | returnPoints () const |
| returns the points
|
|
void | setConstraints (const gsSparseMatrix< T > &lhs, const gsMatrix< T > &rhs) |
|
void | setConstraints (const std::vector< index_t > &indices, const std::vector< gsMatrix< T > > &coefs) |
|
void | setConstraints (const std::vector< boxSide > &fixedSides) |
|
void | setConstraints (const std::vector< boxSide > &fixedSides, const std::vector< gsBSpline< T > > &fixedCurves) |
|
virtual | ~gsFitting () |
| Destructor.
|
|