MeshLib
 
Loading...
Searching...
No Matches
MR::BestFitPolynomial< T, degree > Class Template Reference

#include <MRBestFitPolynomial.h>

Public Member Functions

MRMESH_API BestFitPolynomial (T reg)
 
MRMESH_API void addPoint (T x, T y)
 
MRMESH_API void addPoint (T x, T y, T weight)
 
MRMESH_API Polynomial< T, degree > getBestPolynomial () const
 

Constructor & Destructor Documentation

◆ BestFitPolynomial()

template<typename T , size_t degree>
MRMESH_API MR::BestFitPolynomial< T, degree >::BestFitPolynomial ( T reg)
explicit
Parameters
regRegularization term (L2-reg)

Member Function Documentation

◆ addPoint() [1/2]

template<typename T , size_t degree>
MRMESH_API void MR::BestFitPolynomial< T, degree >::addPoint ( T x,
T y )

◆ addPoint() [2/2]

template<typename T , size_t degree>
MRMESH_API void MR::BestFitPolynomial< T, degree >::addPoint ( T x,
T y,
T weight )

◆ getBestPolynomial()

template<typename T , size_t degree>
MRMESH_API Polynomial< T, degree > MR::BestFitPolynomial< T, degree >::getBestPolynomial ( ) const
Note
The result might have leading coefficient equal to zero.

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