Trait GetSample

Source
pub trait GetSample {
    type Sample: Sized;

    // Required method
    fn get_sample(&self, index: usize) -> Self::Sample;
}
Expand description

Return a sample from the dataset at a given index.

Required Associated Types§

Source

type Sample: Sized

Type of one sample of the dataset.

Required Methods§

Source

fn get_sample(&self, index: usize) -> Self::Sample

Return the dataset sample corresponding to the index.

Implementations on Foreign Types§

Source§

impl<T: Clone> GetSample for VecDeque<T>

Source§

type Sample = T

Source§

fn get_sample(&self, index: usize) -> Self::Sample

Source§

impl<T: Clone> GetSample for Vec<T>

Source§

type Sample = T

Source§

fn get_sample(&self, index: usize) -> Self::Sample

Implementors§

Source§

impl<A1, A2, D1, D2> GetSample for NdarrayDataset<A1, A2, D1, D2>
where A1: Clone, A2: Clone, D1: Dimension + RemoveAxis, D2: Dimension + RemoveAxis,