pub struct FastIca<A, R = Pcg> where
    A: Scalar,
    R: Rng
{ /* private fields */ }
Expand description

Independent component analysis using the FastICA algorithm.

Examples

use petal_decomposition::FastIcaBuilder;

let x = ndarray::arr2(&[[0_f64, 0_f64], [1_f64, 1_f64], [1_f64, -1_f64]]);
let mut ica = FastIcaBuilder::new().build();
let y = ica.fit_transform(&x).unwrap();

Implementations

Creates an ICA model with a random seed.

It uses a PCG random number generator (the XSL 128/64 (MCG) variant on a 64-bit CPU and the XSH RR 64/32 (LCG) variant on a 32-bit CPU), initialized with a randomly-generated seed.

Creates an ICA model with the given seed for random number generation.

It uses a PCG random number generator (the XSL 128/64 (MCG) variant on a 64-bit CPU and the XSH RR 64/32 (LCG) variant on a 32-bit CPU). Use with_rng for a different random number generator.

Creates an ICA model with the given random number generator.

Fits the model with input.

Errors

Applies ICA to input.

Errors

Fits the model with input and apply ICA on input.

This is equivalent to calling both fit and transform for the same input, but more efficient.

Errors

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.