orderMaxMinFast: Max-min ordering function

View source: R/orderfuns.R

orderMaxMinFastR Documentation

Max-min ordering function

Description

This is the O(n^2) algorithm for AMMD ordering. Start with a point in the middle, then propose a random set of the remaining points (of size 'numpropose') and choose the one that has maximum minimum distance to the already selected points. set 'numpropose' to n to get the exact maximum minimum distance ordering

Usage

orderMaxMinFast(locs, numpropose)

Arguments

locs

matrix of locations

numpropose

the number of locations to order

Value

orderinds a vector to order the locations


katzfuss-group/NPvecchia documentation built on April 15, 2022, 2:23 a.m.