order_middleout {GPvecchia} | R Documentation |
Middle-out ordering
Description
Return the ordering of locations increasing in their distance to the average location
Usage
order_middleout(locs, lonlat = FALSE)
Arguments
locs |
A matrix of locations. Each row of |
lonlat |
TRUE/FALSE whether locations are longitudes and latitudes. |
Value
A vector of indices giving the ordering, i.e. the first element of this vector is the index of the location nearest the center.
Examples
n <- 100 # Number of locations
d <- 2 # dimension of domain
locs <- matrix( runif(n*d), n, d )
ord <- order_middleout(locs)
[Package GPvecchia version 0.1.7 Index]