pub struct StreamingICA { /* private fields */ }Expand description
Streaming ICA for real-time blind source separation
Implementations§
Source§impl StreamingICA
impl StreamingICA
Sourcepub fn with_config(self, config: StreamingConfig) -> Self
pub fn with_config(self, config: StreamingConfig) -> Self
Configure the streaming ICA
Sourcepub fn partial_fit(&mut self, sample: &Array1<Float>) -> Result<()>
pub fn partial_fit(&mut self, sample: &Array1<Float>) -> Result<()>
Update the ICA with a new data sample
Sourcepub fn transform(&self, x: &Array2<Float>) -> Result<Array2<Float>>
pub fn transform(&self, x: &Array2<Float>) -> Result<Array2<Float>>
Transform new data using current components
Sourcepub fn components(&self) -> Option<&Array2<Float>>
pub fn components(&self) -> Option<&Array2<Float>>
Get the current components
Sourcepub fn is_drift_detected(&self) -> bool
pub fn is_drift_detected(&self) -> bool
Check if concept drift was detected
Sourcepub fn n_samples_seen(&self) -> usize
pub fn n_samples_seen(&self) -> usize
Get number of samples seen
Sourcepub fn transform_sample(&self, sample: &Array1<Float>) -> Result<Array1<Float>>
pub fn transform_sample(&self, sample: &Array1<Float>) -> Result<Array1<Float>>
Transform a single sample for real-time signal processing
Sourcepub fn mixing_matrix(&self) -> Option<&Array2<Float>>
pub fn mixing_matrix(&self) -> Option<&Array2<Float>>
Get the mixing matrix for source reconstruction
Sourcepub fn separate_sources(
&self,
mixed_sample: &Array1<Float>,
) -> Result<Array1<Float>>
pub fn separate_sources( &self, mixed_sample: &Array1<Float>, ) -> Result<Array1<Float>>
Reconstruct the original sources from mixed signal
Sourcepub fn set_learning_rate(&mut self, learning_rate: Float)
pub fn set_learning_rate(&mut self, learning_rate: Float)
Set learning rate for adaptive tuning
Sourcepub fn learning_rate(&self) -> Float
pub fn learning_rate(&self) -> Float
Get current learning rate
Sourcepub fn force_update(&mut self) -> Result<()>
pub fn force_update(&mut self) -> Result<()>
Force immediate update for real-time scenarios
Trait Implementations§
Source§impl Clone for StreamingICA
impl Clone for StreamingICA
Auto Trait Implementations§
impl Freeze for StreamingICA
impl RefUnwindSafe for StreamingICA
impl Send for StreamingICA
impl Sync for StreamingICA
impl Unpin for StreamingICA
impl UnsafeUnpin for StreamingICA
impl UnwindSafe for StreamingICA
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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