pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for constructing PicardConfig with a fluent API.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn density(self, density: DensityType) -> Self
pub fn density(self, density: DensityType) -> Self
Set the density function.
Sourcepub fn n_components(self, n: usize) -> Self
pub fn n_components(self, n: usize) -> Self
Set the number of components to extract.
Sourcepub fn extended(self, extended: bool) -> Self
pub fn extended(self, extended: bool) -> Self
Enable or disable extended algorithm for mixed sub/super-Gaussian sources.
Sourcepub fn lambda_min(self, lambda_min: f64) -> Self
pub fn lambda_min(self, lambda_min: f64) -> Self
Set the minimum eigenvalue for Hessian regularization.
Sourcepub fn fastica_it(self, iterations: usize) -> Self
pub fn fastica_it(self, iterations: usize) -> Self
Set the number of FastICA pre-iterations.
Note: Cannot be used together with jade_it.
Sourcepub fn jade_it(self, iterations: usize) -> Self
pub fn jade_it(self, iterations: usize) -> Self
Set the number of JADE pre-iterations.
JADE (Joint Approximate Diagonalization of Eigenmatrices) uses fourth-order cumulants and Jacobi rotations for joint diagonalization. It can provide a better warm start than FastICA for some distributions.
Note: Cannot be used together with fastica_it.
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set the random seed.
Sourcepub fn build(self) -> PicardConfig
pub fn build(self) -> PicardConfig
Build the configuration.
Sourcepub fn build_validated(self) -> Result<PicardConfig, PicardError>
pub fn build_validated(self) -> Result<PicardConfig, PicardError>
Build and validate the configuration.
Trait Implementations§
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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