Struct linfa_ica::hyperparams::FastIcaParams
source · [−]pub struct FastIcaParams<F: Float>(_);
Implementations
sourceimpl<F: Float> FastIcaParams<F>
impl<F: Float> FastIcaParams<F>
sourcepub fn ncomponents(self, ncomponents: usize) -> Self
pub fn ncomponents(self, ncomponents: usize) -> Self
Set the number of components to use, if not set all are used
sourcepub fn gfunc(self, gfunc: GFunc) -> Self
pub fn gfunc(self, gfunc: GFunc) -> Self
G function used in the approximation to neg-entropy, refer GFunc
sourcepub fn random_state(self, random_state: usize) -> Self
pub fn random_state(self, random_state: usize) -> Self
Set seed for random number generator for reproducible results.
Trait Implementations
sourceimpl<F: Clone + Float> Clone for FastIcaParams<F>
impl<F: Clone + Float> Clone for FastIcaParams<F>
sourcefn clone(&self) -> FastIcaParams<F>
fn clone(&self) -> FastIcaParams<F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug + Float> Debug for FastIcaParams<F>
impl<F: Debug + Float> Debug for FastIcaParams<F>
sourceimpl<F: Float> Default for FastIcaParams<F>
impl<F: Float> Default for FastIcaParams<F>
sourceimpl<F: Float> ParamGuard for FastIcaParams<F>
impl<F: Float> ParamGuard for FastIcaParams<F>
type Checked = FastIcaValidParams<F>
type Checked = FastIcaValidParams<F>
The checked hyperparameters
type Error = FastIcaError
type Error = FastIcaError
Error type resulting from failed hyperparameter checking
sourcefn check_ref(&self) -> Result<&Self::Checked, Self::Error>
fn check_ref(&self) -> Result<&Self::Checked, Self::Error>
Checks the hyperparameters and returns a reference to the checked hyperparameters if successful Read more
sourcefn check(self) -> Result<Self::Checked, Self::Error>
fn check(self) -> Result<Self::Checked, Self::Error>
Checks the hyperparameters and returns the checked hyperparameters if successful
sourcefn check_unwrap(self) -> Self::Checked
fn check_unwrap(self) -> Self::Checked
Calls check()
and unwraps the result
sourceimpl<F: PartialEq + Float> PartialEq<FastIcaParams<F>> for FastIcaParams<F>
impl<F: PartialEq + Float> PartialEq<FastIcaParams<F>> for FastIcaParams<F>
sourcefn eq(&self, other: &FastIcaParams<F>) -> bool
fn eq(&self, other: &FastIcaParams<F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FastIcaParams<F>) -> bool
fn ne(&self, other: &FastIcaParams<F>) -> bool
This method tests for !=
.
impl<F: Float> StructuralPartialEq for FastIcaParams<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for FastIcaParams<F> where
F: RefUnwindSafe,
impl<F> Send for FastIcaParams<F>
impl<F> Sync for FastIcaParams<F>
impl<F> Unpin for FastIcaParams<F>
impl<F> UnwindSafe for FastIcaParams<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more