pub struct CorrelationMatrix { /* private fields */ }Expand description
Pairwise Pearson correlation matrix for a set of variables.
Implementations§
Source§impl CorrelationMatrix
impl CorrelationMatrix
Sourcepub fn from_rows(rows: &[&[f64]]) -> Result<Self>
pub fn from_rows(rows: &[&[f64]]) -> Result<Self>
Build a correlation matrix from rows of observations.
Each inner slice is one variable’s observations (all must have the same length and at least 2 elements).
Sourcepub fn from_rows_labeled(rows: &[&[f64]], labels: &[&str]) -> Result<Self>
pub fn from_rows_labeled(rows: &[&[f64]], labels: &[&str]) -> Result<Self>
Build a labeled correlation matrix.
Trait Implementations§
Source§impl Clone for CorrelationMatrix
impl Clone for CorrelationMatrix
Source§fn clone(&self) -> CorrelationMatrix
fn clone(&self) -> CorrelationMatrix
Returns a duplicate 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 CorrelationMatrix
impl Debug for CorrelationMatrix
Source§impl Summarizable for CorrelationMatrix
impl Summarizable for CorrelationMatrix
Auto Trait Implementations§
impl Freeze for CorrelationMatrix
impl RefUnwindSafe for CorrelationMatrix
impl Send for CorrelationMatrix
impl Sync for CorrelationMatrix
impl Unpin for CorrelationMatrix
impl UnsafeUnpin for CorrelationMatrix
impl UnwindSafe for CorrelationMatrix
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