pub trait Space {
type Value: Debug + Clone;
fn dim(&self) -> usize;
fn card(&self) -> Card;
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::Value;
}
Expand description
Trait for defining geometric spaces.
pub trait Space {
type Value: Debug + Clone;
fn dim(&self) -> usize;
fn card(&self) -> Card;
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::Value;
}
Trait for defining geometric spaces.