mbased_mve | R Documentation |
mbased_mve helps in finding the centroid and matrix that define a minimum volume ellipsoid as proposed by Moshtagh (2005).
mbased_mve(data, fitting_tolerance = 0.001)
data |
matrix of values to be used for fitting the ellipsoid. Columns represent dimensions and rows observations. |
fitting_tolerance |
(numeric) proportion of error allowed when checking if the ellipsoid incloses all values considered to fit it. Default = 0.001. |
The algorithm used to fit the ellipsoids here was implemented by Moshtagh (2005) and based on initial work of Khachiyan (1996) and Rocha et al. (2002).
Details about to the algortihm can be found in https://bit.ly/2XYWlVT, https://bit.ly/2x6aR2s, and https://bit.ly/2KrxE1g.
A named list containing the values for the centroid of th ellipsoid and a matrix of covariance.
# reading data
occurrences <- read.csv(system.file("extdata", "occurrences.csv",
package = "ellipsenm"))
# raster layers of environmental data
vars <- raster::stack(list.files(system.file("extdata", package = "ellipsenm"),
pattern = "bio", full.names = TRUE))
data <- raster::extract(vars, occurrences[, -1])
mvellipsoid <- mbased_mve(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.