pub struct CorrelationMatrix {
pub labels: Vec<String>,
pub pearson: Vec<Vec<f64>>,
pub spearman: Vec<Vec<f64>>,
pub kendall: Vec<Vec<f64>>,
}Expand description
Pairwise correlation matrices across a set of labelled metric series.
Each matrix is k x k where k = series.len(), indexed by series order;
the diagonal is 1.0 for non-constant series.
Fields§
§labels: Vec<String>Series labels, in row/column order.
pearson: Vec<Vec<f64>>Pearson correlation coefficients.
spearman: Vec<Vec<f64>>Spearman (SROCC) rank correlation coefficients.
kendall: Vec<Vec<f64>>Kendall tau-b (KROCC) rank correlation coefficients.
Implementations§
Source§impl CorrelationMatrix
impl CorrelationMatrix
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Render the Spearman (SROCC) matrix as a Markdown table.
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 (const: unstable) · 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<'de> Deserialize<'de> for CorrelationMatrix
impl<'de> Deserialize<'de> for CorrelationMatrix
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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