MeshLib Documentation
Loading...
Searching...
No Matches
MR::BestFitParabola< T > Class Template Reference

accumulates a number of (x,y) points to find the best-least-squares parabola approximating them More...

#include <MRBestFitParabola.h>

Public Member Functions

void addPoint (T x, T y)
 accumulates one more point for parabola fitting
 
void addPoint (T x, T y, T weight)
 accumulates one more point with given weight for parabola fitting
 
Parabola< T > getBestParabola (T tol=std::numeric_limits< T >::epsilon()) const
 computes the best approximating parabola from the accumulated points;
 

Detailed Description

template<typename T>
class MR::BestFitParabola< T >

accumulates a number of (x,y) points to find the best-least-squares parabola approximating them

Member Function Documentation

◆ addPoint() [1/2]

template<typename T >
void MR::BestFitParabola< T >::addPoint ( T x,
T y )

accumulates one more point for parabola fitting

◆ addPoint() [2/2]

template<typename T >
void MR::BestFitParabola< T >::addPoint ( T x,
T y,
T weight )

accumulates one more point with given weight for parabola fitting

◆ getBestParabola()

template<typename T >
Parabola< T > MR::BestFitParabola< T >::getBestParabola ( T tol = std::numeric_limits<T>::epsilon()) const

computes the best approximating parabola from the accumulated points;


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