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

pub struct Chebyshev {
    pub order: u8,
    pub limits: Vec<(f64, f64)>,
    pub polynomials: Vec<Vec<fn(_: f64) -> f64>>,
}

Chebyshev polynomial basis projector.

Fields

order: u8limits: Vec<(f64, f64)>polynomials: Vec<Vec<fn(_: f64) -> f64>>

Methods

impl Chebyshev[src]

pub fn new(order: u8, limits: Vec<(f64, f64)>) -> Self[src]

pub fn from_space(order: u8, input_space: LinearSpace<Interval>) -> Self[src]

Trait Implementations

impl Projector<[f64]> for Chebyshev[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 Projector<Vec<f64>> for Chebyshev where
    Chebyshev: Projector<[f64]>, 
[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 Projector<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for Chebyshev where
    Chebyshev: Projector<[f64]>, 
[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 Clone for Chebyshev[src]

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

Performs copy-assignment from source. Read more

impl Debug for Chebyshev[src]

impl Space for Chebyshev[src]

type Value = Features

The data representation of the space.

Auto Trait Implementations

impl Send for Chebyshev

impl Sync for Chebyshev

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]

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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, 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> Borrow for T where
    T: ?Sized
[src]

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

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