pub struct FastIcaParams<F: Float>(/* private fields */);Implementations§
Source§impl<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§
Source§impl<F: Clone + Float> Clone for FastIcaParams<F>
impl<F: Clone + Float> Clone for FastIcaParams<F>
Source§fn clone(&self) -> FastIcaParams<F>
fn clone(&self) -> FastIcaParams<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Float> Default for FastIcaParams<F>
impl<F: Float> Default for FastIcaParams<F>
Source§impl<F: Float> ParamGuard for FastIcaParams<F>
impl<F: Float> ParamGuard for FastIcaParams<F>
Source§type Checked = FastIcaValidParams<F>
type Checked = FastIcaValidParams<F>
The checked hyperparameters
Source§type Error = FastIcaError
type Error = FastIcaError
Error type resulting from failed hyperparameter checking
Source§fn 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
Source§fn 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
Source§fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
Calls
check() and unwraps the resultimpl<F: Float> StructuralPartialEq for FastIcaParams<F>
Auto Trait Implementations§
impl<F> Freeze for FastIcaParams<F>where
F: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more