RANSAC: Robust Model Fitting Using the RANSAC Algorithm

Provides tools for robust regression model fitting using the RANSAC (Random Sample Consensus) algorithm. RANSAC is an iterative method to estimate parameters of a model from a dataset that contains outliers. This package allows fitting both linear lm and nonlinear nls models using RANSAC, helping users obtain more reliable models in the presence of noisy or corrupted data. The methods are particularly useful in contexts where traditional least squares regression fails due to the influence of outliers. Implementations include support for performance metrics such as RMSE, MAE, and R² based on the inlier subset. For further details, see Fischler and Bolles (1981) <doi:10.1145/358669.358692>.

Package details

AuthorJadson Abreu [aut, cre]
MaintainerJadson Abreu <jadson.ap@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("RANSAC")

Try the RANSAC package in your browser

Any scripts or data that you put into this service are public.

RANSAC documentation built on June 8, 2025, 12:25 p.m.