use super::PcaComponent;
#[derive(Debug, Clone, Copy)]
pub struct Unfitted {
pub(super) n_components: usize,
}
impl super::sealed::Sealed for Unfitted {}
impl PcaComponent for Unfitted {
fn n_components(&self) -> usize {
self.n_components
}
}
#[derive(Debug, Clone)]
pub struct Fitted {
pub(super) n_components: usize,
pub(super) components: Vec<f32>,
pub(super) explained_variance_ratio: Vec<f32>,
pub(super) mean: Vec<f32>,
}
impl super::sealed::Sealed for Fitted {}
impl PcaComponent for Fitted {
fn n_components(&self) -> usize {
self.n_components
}
}