[−][src]Struct discrete::Context
A discrete space that can model spatial operations over arbitrary states, therefore useful for context analysis.
It can be constructed by taking a N-dimensional space, for each dimension create a pair subspace and sum over the dimensions. It can also be thought of as the edges in an undirected graph, where each node is described by a N-dimensional coordinate, and all nodes are connected which differ by one axis.
Dimensions of size 2 gives the edges on a hypercube of the number of dimensions.
For example, [2, 2, 2]
gives edges on a cube in 3 dimensions.
Trait Implementations
impl<T> Construct for Context<T>
[src]
impl Count<Vec<usize>> for Context<Data>
[src]
impl<T, U> Count<Vec<U>> for Context<Of<T>> where
T: Construct + Count<U>,
[src]
T: Construct + Count<U>,
impl ToIndex<Vec<usize>, (Vec<usize>, usize, usize)> for Context<Data>
[src]
impl<T, U, V> ToIndex<Vec<U>, (Vec<V>, usize, V)> for Context<Of<T>> where
T: Construct + Count<U> + ToIndex<U, V>,
[src]
T: Construct + Count<U> + ToIndex<U, V>,
impl ToPos<Vec<usize>, (Vec<usize>, usize, usize)> for Context<Data>
[src]
fn to_pos(
&self,
dim: &Vec<usize>,
index: usize,
(p, ind, b): &mut (Vec<usize>, usize, usize)
)
[src]
&self,
dim: &Vec<usize>,
index: usize,
(p, ind, b): &mut (Vec<usize>, usize, usize)
)
impl<T, U, V> ToPos<Vec<U>, (Vec<V>, usize, V)> for Context<Of<T>> where
T: Construct + Count<U> + ToPos<U, V> + Zero<U, V>,
[src]
T: Construct + Count<U> + ToPos<U, V> + Zero<U, V>,
impl Zero<Vec<usize>, (Vec<usize>, usize, usize)> for Context<Data>
[src]
impl<T, U, V> Zero<Vec<U>, (Vec<V>, usize, V)> for Context<Of<T>> where
T: Construct + Count<U> + ToPos<U, V> + Zero<U, V>,
[src]
T: Construct + Count<U> + ToPos<U, V> + Zero<U, V>,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,