pub struct LoadingPlotData {
pub x_loadings: Array1<Float>,
pub y_loadings: Array1<Float>,
pub component1: usize,
pub component2: usize,
pub explained_variance1: Float,
pub explained_variance2: Float,
pub feature_names: Option<Vec<String>>,
}Expand description
Loading plot data structure
Fields§
§x_loadings: Array1<Float>Loadings for first component (x-axis)
y_loadings: Array1<Float>Loadings for second component (y-axis)
component1: usizeIndex of first component
component2: usizeIndex of second component
explained_variance1: FloatExplained variance ratio for first component
explained_variance2: FloatExplained variance ratio for second component
feature_names: Option<Vec<String>>Feature names
Implementations§
Source§impl LoadingPlotData
impl LoadingPlotData
Sourcepub fn axis_labels(&self) -> (String, String)
pub fn axis_labels(&self) -> (String, String)
Get axis labels with explained variance information
Trait Implementations§
Source§impl Clone for LoadingPlotData
impl Clone for LoadingPlotData
Auto Trait Implementations§
impl Freeze for LoadingPlotData
impl RefUnwindSafe for LoadingPlotData
impl Send for LoadingPlotData
impl Sync for LoadingPlotData
impl Unpin for LoadingPlotData
impl UnsafeUnpin for LoadingPlotData
impl UnwindSafe for LoadingPlotData
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