pub struct BucketFileStats {
pub mean: f64,
pub median: f64,
pub stdev: f64,
pub min: f64,
pub max: f64,
}Expand description
Per-bucket statistics about total sequence lengths of source files.
Each source file contributes one “file length” — the sum of all sequence bases in that file. These stats summarize the distribution of file lengths within a single bucket.
Fields§
§mean: f64Mean of per-file total sequence lengths.
median: f64Median of per-file total sequence lengths.
stdev: f64Population standard deviation of per-file total sequence lengths.
min: f64Minimum per-file total sequence length.
max: f64Maximum per-file total sequence length.
Implementations§
Source§impl BucketFileStats
impl BucketFileStats
Sourcepub fn from_file_lengths(lengths: &[u64]) -> Option<Self>
pub fn from_file_lengths(lengths: &[u64]) -> Option<Self>
Compute stats from a slice of per-file total sequence lengths.
Returns None if the slice is empty.
Trait Implementations§
Source§impl Clone for BucketFileStats
impl Clone for BucketFileStats
Source§fn clone(&self) -> BucketFileStats
fn clone(&self) -> BucketFileStats
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 BucketFileStats
impl Debug for BucketFileStats
Source§impl PartialEq for BucketFileStats
impl PartialEq for BucketFileStats
impl StructuralPartialEq for BucketFileStats
Auto Trait Implementations§
impl Freeze for BucketFileStats
impl RefUnwindSafe for BucketFileStats
impl Send for BucketFileStats
impl Sync for BucketFileStats
impl Unpin for BucketFileStats
impl UnsafeUnpin for BucketFileStats
impl UnwindSafe for BucketFileStats
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