View source: R/faster_orderings.R
orderMaxMinFaster | R Documentation |
Assumes Euclidean distance and finds maximin ordering. It is equivalent to order_maximin_dist
but much faster.
orderMaxMinFaster(locs, low_mem = FALSE)
locs |
matrix of n locations in arbitrary dimension (to match input argument of fields::rdist) |
low_mem |
flag that changes the memory requirements of the function. Defaults to false, which allows the function to calculate the full distance matrix between all locations. If set to true, it will only calculate one column of the distance matrix at a time, which slows down the function but also decreases memory requirements. |
Maximin ordering of the points
n <- 100 d <- 3 locationss <- matrix(runif(n * d), nc = d) ordering <- orderMaxMinFaster(locationss)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.