The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
title: “Introduction to the RANSAC Package” author: “Jadson Abreu” date: “2025-05-06” output: rmarkdown::html_vignette vignette: > % % % —
This package provides robust fitting methods for linear and nonlinear models using the RANSAC algorithm.
```r library(RANSAC)
set.seed(123) x <- 1:20 y <- 2*x + rnorm(20) y[c(18,19,20)] <- y[c(18,19,20)] + 30 # Add outliers dados <- data.frame(x = x, y = y)
modelo <- ransac_reg(y ~ x, data = dados, n_min = 2, tol = 5)
summary(modelo)
set.seed(456) x <- seq(1, 10, length.out = 20) y <- 2 * x^1.5 + rnorm(20) y[c(18,19,20)] <- y[c(18,19,20)] + 50 dados <- data.frame(x = x, y = y)
modelo <- ransac_nls(y ~ a * x^b, data = dados, start = list(a = 1, b = 1.5), n_min = 3, tol = 10)
summary(modelo)
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.