fps_vector: farthest point sampling (FPS) for a vector

fps_vectorR Documentation

farthest point sampling (FPS) for a vector

Description

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)

baizer documentation built on Oct. 19, 2023, 9:07 a.m.