pub struct ComponentContribution {
pub individual_variance: Array1<Float>,
pub cumulative_variance: Array1<Float>,
pub total_variance_explained: Float,
}Expand description
Component contribution analysis
Fields§
§individual_variance: Array1<Float>Individual explained variance ratio for each component
cumulative_variance: Array1<Float>Cumulative explained variance ratio
total_variance_explained: FloatTotal variance explained by all components
Implementations§
Source§impl ComponentContribution
impl ComponentContribution
Sourcepub fn components_for_variance(&self, threshold: Float) -> usize
pub fn components_for_variance(&self, threshold: Float) -> usize
Get components needed to explain a certain percentage of variance
Sourcepub fn variance_explained_by_n_components(&self, n: usize) -> Float
pub fn variance_explained_by_n_components(&self, n: usize) -> Float
Get variance explained by first n components
Trait Implementations§
Source§impl Clone for ComponentContribution
impl Clone for ComponentContribution
Auto Trait Implementations§
impl Freeze for ComponentContribution
impl RefUnwindSafe for ComponentContribution
impl Send for ComponentContribution
impl Sync for ComponentContribution
impl Unpin for ComponentContribution
impl UnsafeUnpin for ComponentContribution
impl UnwindSafe for ComponentContribution
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