pub struct PCAParameters {
pub n_components: usize,
pub use_correlation_matrix: bool,
}
Expand description
PCA parameters
Fields§
§n_components: usize
Number of components to keep.
use_correlation_matrix: bool
By default, covariance matrix is used to compute principal components. Enable this flag if you want to use correlation matrix instead.
Implementations§
Source§impl PCAParameters
impl PCAParameters
Sourcepub fn with_n_components(self, n_components: usize) -> Self
pub fn with_n_components(self, n_components: usize) -> Self
Number of components to keep.
Sourcepub fn with_use_correlation_matrix(self, use_correlation_matrix: bool) -> Self
pub fn with_use_correlation_matrix(self, use_correlation_matrix: bool) -> Self
By default, covariance matrix is used to compute principal components. Enable this flag if you want to use correlation matrix instead.
Trait Implementations§
Source§impl Clone for PCAParameters
impl Clone for PCAParameters
Source§fn clone(&self) -> PCAParameters
fn clone(&self) -> PCAParameters
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 Debug for PCAParameters
impl Debug for PCAParameters
Source§impl Default for PCAParameters
impl Default for PCAParameters
Source§impl<T: Number + RealNumber, X: Array2<T> + SVDDecomposable<T> + EVDDecomposable<T>> UnsupervisedEstimator<X, PCAParameters> for PCA<T, X>
impl<T: Number + RealNumber, X: Array2<T> + SVDDecomposable<T> + EVDDecomposable<T>> UnsupervisedEstimator<X, PCAParameters> for PCA<T, X>
Auto Trait Implementations§
impl Freeze for PCAParameters
impl RefUnwindSafe for PCAParameters
impl Send for PCAParameters
impl Sync for PCAParameters
impl Unpin for PCAParameters
impl UnwindSafe for PCAParameters
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