Struct spaces::PairSpace
[−]
[src]
pub struct PairSpace<D1, D2>(pub D1, pub D2)
where
D1: Space,
D2: Space;
2-dimensional homogeneous space.
Methods
impl<D1: Space, D2: Space> PairSpace<D1, D2>[src]
impl PairSpace<Continuous, Continuous>[src]
pub fn partitioned(self, density: usize) -> PairSpace<Partitioned, Partitioned>[src]
Trait Implementations
impl<D1: Clone, D2: Clone> Clone for PairSpace<D1, D2> where
D1: Space,
D2: Space, [src]
D1: Space,
D2: Space,
fn clone(&self) -> PairSpace<D1, D2>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<D1: Copy, D2: Copy> Copy for PairSpace<D1, D2> where
D1: Space,
D2: Space, [src]
D1: Space,
D2: Space,
impl<D1: Debug, D2: Debug> Debug for PairSpace<D1, D2> where
D1: Space,
D2: Space, [src]
D1: Space,
D2: Space,
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<D1: Space, D2: Space> Space for PairSpace<D1, D2>[src]
type Value = (D1::Value, D2::Value)
The data representation of the space.
fn dim(&self) -> usize[src]
Return the number of dimensions in the space.
fn span(&self) -> Span[src]
Return the number of linear combinations of values in the space.
fn sample(&self, rng: &mut ThreadRng) -> (D1::Value, D2::Value)[src]
Generate a random sample from the space.
impl<D1, X1, D2, X2> Surjection<(X1, X2), (D1::Value, D2::Value)> for PairSpace<D1, D2> where
D1: Space + Surjection<X1, <D1 as Space>::Value>,
D2: Space + Surjection<X2, <D2 as Space>::Value>, [src]
D1: Space + Surjection<X1, <D1 as Space>::Value>,
D2: Space + Surjection<X2, <D2 as Space>::Value>,