Learn R Programming

baizer (version 0.8.0)

fps_vector: farthest point sampling (FPS) for a vector

Description

farthest point sampling (FPS) for a vector

Usage

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

Value

sampled vector

Arguments

v

vector

n

sample size

method

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

Examples

Run this code
fps_vector(1:10, 4)

Run the code above in your browser using DataLab