Trait spaces::Space [] [src]

pub trait Space {
    type Value: Debug + Clone;
    fn dim(&self) -> usize;
fn span(&self) -> Span;
fn sample(&self, rng: &mut ThreadRng) -> Self::Value; }

Trait for defining geometric spaces.

Associated Types

The data representation of the space.

Required Methods

Return the number of dimensions in the space.

Return the number of linear combinations of values in the space.

Generate a random sample from the space.

Implementations on Foreign Types

impl<D: Space> Space for Box<D>
[src]

[src]

[src]

[src]

impl<'a, D: Space> Space for &'a D
[src]

[src]

[src]

[src]

Implementors