pub struct GeneStats {
pub mean: Vec<f64>,
pub std: Vec<f64>,
}Expand description
Per-gene mean and standard deviation over all cells. The variance uses the
ddof=1 (sample) convention scanpy enforces: var = (E[x²] - E[x]²)·n/(n-1).
A zero-variance gene’s std collapses to 1 so its centered row stays at 0.
Fields§
§mean: Vec<f64>§std: Vec<f64>Auto Trait Implementations§
impl Freeze for GeneStats
impl RefUnwindSafe for GeneStats
impl Send for GeneStats
impl Sync for GeneStats
impl Unpin for GeneStats
impl UnsafeUnpin for GeneStats
impl UnwindSafe for GeneStats
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> 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