pub fn farthest_point_sampling(
points: &[DVector<f64>],
n_points: usize,
seed: u64,
) -> Vec<DVector<f64>> ⓘExpand description
Farthest point sampling.
Iteratively selects the point that is farthest from all previously selected points, producing a well-distributed subset.
§Arguments
points- Original N-dimensional points.n_points- Number of points to sample.seed- Random seed for selecting the initial point.
§Returns
A vector of n_points sampled points.
§Panics
Panics if n_points is 0 or exceeds the number of input points.