pub struct Correlation {
pub r: f64,
pub rho: f64,
pub size_rho: Option<(f64, f64)>,
}Expand description
How two things go together in a scatter: y with x, and a bubble’s size with x and with y.
Fields§
§r: f64Pearson’s r of x and y.
rho: f64Spearman’s ρ of x and y (ranks: any monotone trend).
size_rho: Option<(f64, f64)>Spearman’s ρ of the size with x and with y, for a bubble chart.
Trait Implementations§
Source§impl Clone for Correlation
impl Clone for Correlation
Source§impl Debug for Correlation
impl Debug for Correlation
Source§impl PartialEq for Correlation
impl PartialEq for Correlation
impl StructuralPartialEq for Correlation
Auto Trait Implementations§
impl Forget for Correlation
impl Freeze for Correlation
impl Move for Correlation
impl RefUnwindSafe for Correlation
impl Send for Correlation
impl Sync for Correlation
impl Unpin for Correlation
impl UnsafeUnpin for Correlation
impl UnwindSafe for Correlation
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
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