View source: R/faster_orderings.R
order_mm_tapered | R Documentation |
This function is a wrapper for order_maximin_dist
to take in data and
locations to calculate the ordering based on a tapered sample covariance matrix. It
provides an argument to control the amount of tapering.
order_mm_tapered(locs, datum, tapering_range = 0.4)
locs |
matrix of locations of points (to match input argument of fields::rdist) |
datum |
Data where column i corresponds to observations at the i'th point of locs |
tapering_range |
Percentage of the maximum distance for Exponential tapering, which defaults to 0.4 * the maximum distance. |
Maximin ordering of the points
n <- 100 d <- 2 N <- 50 locationss <- matrix(runif(n * d), nc = d) dataa <- matrix(rnorm(n * N), nr = N) order_mm <- order_mm_tapered(locationss, dataa) #reorder locations/data locationss <- locationss[order_mm, ] dataa <- dataa[, order_mm]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.