R/utils-basic.R
fps_vector.Rd
farthest point sampling (FPS) for a vector
fps_vector(v, n, method = "round")
vector
sample size
round|floor|ceiling, the method used when trans to integer
round|floor|ceiling
sampled vector
fps_vector(1:10, 4) #> [1] 1 4 7 10