MeshLib C++ Docs
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


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