[−][src]Struct lfa::composition::Sum
Sum the output of two Projector
instances.
Methods
impl<T1, T2> Sum<T1, T2>
[src]
impl<T: Space> Sum<T, Constant>
[src]
pub fn with_constant(x: T, offset: f64) -> Self
[src]
Trait Implementations
impl<I: ?Sized, P1: Projector<I>, P2: Projector<I>> Projector<I> for Sum<P1, P2>
[src]
fn project(&self, input: &I) -> Features
[src]
fn project_expanded(&self, input: &I) -> DenseT
[src]
Project data from an input space onto the basis and expand into a dense vector form using Features::expanded(self.dim())
. Read more
impl<T1: Copy, T2: Copy> Copy for Sum<T1, T2>
[src]
impl<T1: Clone, T2: Clone> Clone for Sum<T1, T2>
[src]
fn clone(&self) -> Sum<T1, T2>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T1: Debug, T2: Debug> Debug for Sum<T1, T2>
[src]
impl<P1: Space, P2: Space> Space for Sum<P1, P2>
[src]
Auto Trait Implementations
impl<T1, T2> Send for Sum<T1, T2> where
T1: Send,
T2: Send,
T1: Send,
T2: Send,
impl<T1, T2> Sync for Sum<T1, T2> where
T1: Sync,
T2: Sync,
T1: Sync,
T2: Sync,
Blanket Implementations
impl<T> Composable for T
[src]
fn lfa<A: Approximator>(self, approximator: A) -> LFA<Self, A>
[src]
Return an LFA
using this Projector
instance and a given Approximator
.
fn stack<P>(self, p: P) -> Stack<Self, P>
[src]
Return a Stack
of this Projector
over another.
fn add<P: Space>(self, p: P) -> Sum<Self, P> where
Self: Space,
[src]
Self: Space,
Return the Sum
of this Projector
and another.
fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>> where
Self: Space,
[src]
Self: Space,
Return the Sum
of this Projector
and the Negate
d other.
fn shift(self, offset: f64) -> Shift<Self>
[src]
Return the original Projector
with all activations Shift
ed by some offset
.
fn multiply<P: Space>(self, p: P) -> Product<Self, P> where
Self: Space,
[src]
Self: Space,
Return the Product
of this Projector
and another.
fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>> where
Self: Space,
[src]
Self: Space,
Return the Product
of this Projector
and the Reciprocal
of the other.
fn scale(self, factor: f64) -> Scale<Self>
[src]
Return the original Projector
with all activations Scale
d by some factor
.
fn normalise_l1(self) -> L1Normalise<Self>
[src]
Return the original Projector
with all activations normalised in L₁.
fn normalise_l2(self) -> L2Normalise<Self>
[src]
Return the original Projector
with all activations normalised in L₂.
fn normalise_lp(self, p: u8) -> LpNormalise<Self>
[src]
Return the original Projector
with all activations normalised in Lp.
fn normalise_linf(self) -> LinfNormalise<Self>
[src]
Return the original Projector
with all activations normalised in L∞.
fn with_constant(self) -> Stack<Self, Constant>
[src]
Return the a Stack
of this Projector
with a single constant feature term.
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,