Skip to contents

farthest point sampling (FPS) for a vector

Usage

fps_vector(v, n, method = "round")

Arguments

v

vector

n

sample size

method

round|floor|ceiling, the method used when trans to integer

Value

sampled vector

Examples

fps_vector(1:10, 4)
#> [1]  1  4  7 10