Hi all,
For an internal project, we implemented a RANSAC algorithm for model-based fitting. We validated it with two cases:
- Line fitting using the dataset provided in the Wikipedia website
- Quadratic equation fitting
We obtain very good results for both cases (see images below).
In addition, we compared the fitting performed with RANSAC with the one performed by the least squares fitter used in PolynomialCurveFitter. The comparison, also presented in the images below, shows the capabilities of the RANSAC to perform a very good fitting.
Are you interested if we contribute this algorithm in the hipparchus-fitting package?
Best regards,
Bryan
Line fitting
Quadratic equation fitting

