Struct linfa_ica::hyperparams::FastIcaParams
source · 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 copy 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>
§type Checked = FastIcaValidParams<F>
type Checked = FastIcaValidParams<F>
The checked hyperparameters
§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 resultsource§impl<F: PartialEq + Float> PartialEq for FastIcaParams<F>
impl<F: PartialEq + Float> PartialEq for FastIcaParams<F>
source§fn 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 ==
.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§
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