Skip to main content

make_blobs

Function make_blobs 

Source
pub fn make_blobs(
    per_cluster: usize,
    centres: &[Vec<f64>],
    spread: f64,
    seed: u64,
) -> (R2D, Vec<usize>)
Expand description

Gaussian blobs: per_cluster points around each centre with standard deviation spread. Returns the points and the true cluster of each.