[][src]Struct lfa::basis::fixed::KernelProjector

pub struct KernelProjector<I, K> {
    pub prototypes: Vec<Prototype<I, K>>,
}

Kernel machine basis projector.

Fields

prototypes: Vec<Prototype<I, K>>

Methods

impl<I, K: Kernel<I>> KernelProjector<I, K>[src]

pub fn new(prototypes: Vec<Prototype<I, K>>) -> Self[src]

pub fn homogeneous(
    centroids: impl IntoIterator<Item = impl Into<I>>,
    kernel: K
) -> Self
[src]

impl KernelProjector<Vector<f64>, ExpQuad>[src]

pub fn exp_quad(partitioning: LinearSpace<Partition>) -> Self[src]

impl KernelProjector<Vector<f64>, Matern32>[src]

pub fn matern_32(partitioning: LinearSpace<Partition>) -> Self[src]

impl KernelProjector<Vector<f64>, Matern52>[src]

pub fn matern_52(partitioning: LinearSpace<Partition>) -> Self[src]

Trait Implementations

impl<I, K: Kernel<I>> Projector<I> for KernelProjector<I, K>[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 Projection::expanded(self.dim()). Read more

impl<I, K: Kernel<I>> Composable for KernelProjector<I, K>[src]

fn lfa<A: Approximator<Projection>>(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]

Return the Sum of this Projector and another.

fn subtract<P: Space>(self, p: P) -> Sum<Self, Negate<P>> where
    Self: Space
[src]

Return the Sum of this Projector and the Negated other.

fn shift(self, offset: f64) -> Shift<Self>[src]

Return the original Projector with all activations Shifted by some offset.

fn multiply<P: Space>(self, p: P) -> Product<Self, P> where
    Self: Space
[src]

Return the Product of this Projector and another.

fn divide<P: Space>(self, p: P) -> Product<Self, Reciprocal<P>> where
    Self: Space
[src]

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 Scaled 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<I: Clone, K: Clone> Clone for KernelProjector<I, K>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<I: Debug, K: Debug> Debug for KernelProjector<I, K>[src]

impl<'de, I, K> Deserialize<'de> for KernelProjector<I, K> where
    I: Deserialize<'de>,
    K: Deserialize<'de>, 
[src]

impl<I, K> Serialize for KernelProjector<I, K> where
    I: Serialize,
    K: Serialize
[src]

impl<I, K: Kernel<I>> Space for KernelProjector<I, K>[src]

type Value = Projection

The data representation of the space.

Auto Trait Implementations

impl<I, K> Send for KernelProjector<I, K> where
    I: Send,
    K: Send

impl<I, K> Sync for KernelProjector<I, K> where
    I: Sync,
    K: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]