m.reject | R Documentation |
This heuristic ensures that chosen anchor points are not along a straight line and,
if length(m.ind)<5
, that the maximum distance between the initial anchor points in the
G-plane is sufficiently large i.e. over 60\% of the maximum pairwise distance of all sampling locations in the G-plane.
m.reject(m.ind, Gcoords, sphere.dis = FALSE)
m.ind |
A vector of indices denoting the anchor points in |
Gcoords |
A |
sphere.dis |
Is Spherical distance or Euclidean distance used? |
1
if anchor points are rejected, 0
otherwise.
data("Aus_Heat") Gcoords<-Aus_Heat$coords # Set number of anchor points m<-10 # Sample anchor points m.ind<-sample(1:dim(Gcoords)[1],m,replace=FALSE) reject<-m.reject(m.ind,Gcoords,sphere.dis=TRUE) print(reject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.