Dataset

Trait Dataset 

Source
pub trait Dataset {
    type Values;

    // Required methods
    fn values(&self) -> &Self::Values;
    fn sample_size(&self) -> f64;
}
Expand description

A trait for dataset.

Required Associated Types§

Source

type Values

The type of the values.

Required Methods§

Source

fn values(&self) -> &Self::Values

The values of the dataset.

§Returns

A reference to the values.

Source

fn sample_size(&self) -> f64

The sample size.

§Notes

If the dataset is weighted, this should return the sum of the weights.

§Returns

The number of samples in the dataset.

Implementors§