[][src]Struct linfa_reduction::Pca

pub struct Pca<F> { /* fields omitted */ }

Implementations

impl Pca<f64>[src]

pub fn params(size: usize) -> PrincipalComponentAnalysisParams[src]

pub fn explained_variance(&self) -> Array1<f64>[src]

Return the amount of explained variance per element

pub fn explained_variance_ratio(&self) -> Array1<f64>[src]

Return the normalized amount of explained variance per element

Trait Implementations

impl<F: Clone> Clone for Pca<F>[src]

impl<F: Debug> Debug for Pca<F>[src]

impl<F: Float, D: Data<Elem = F>> Predict<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>> for Pca<F>[src]

pub fn predict(&self, x: ArrayBase<D, Ix2>) -> Array2<F>[src]

Given a new data points project with fitted model

Auto Trait Implementations

impl<F> RefUnwindSafe for Pca<F> where
    F: RefUnwindSafe
[src]

impl<F> Send for Pca<F> where
    F: Send
[src]

impl<F> Sync for Pca<F> where
    F: Sync
[src]

impl<F> Unpin for Pca<F>[src]

impl<F> UnwindSafe for Pca<F> where
    F: RefUnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,