Internal function used by kNCN_average to compute the k-NCN algorithm starting with a specified focal sample
centroid_accumulate(
x,
focal_sample = 1,
n = NULL,
coords = NULL,
latlong = FALSE
)
a mob_in object or a community site x species matrix
an integer from 1 to the number of samples of x that specifies which sample to start with. Defaults to 1
the number of samples to accumulate, defaults to NULL in which case all samples are accumulated
the spatial coordinates of the samples of x
if latitude longitude arguments are supplied