pub struct RasterStatistics {
pub count: usize,
pub min: f64,
pub max: f64,
pub mean: f64,
pub median: f64,
pub stddev: f64,
pub variance: f64,
pub sum: f64,
}Expand description
Statistics for a raster or zone
Fields§
§count: usizeNumber of valid (non-NoData) pixels
min: f64Minimum value
max: f64Maximum value
mean: f64Mean (average) value
median: f64Median value.
Computed via bounded reservoir sampling (~10,000 samples). This is
the exact median when count <= 10_000; for larger rasters it is
a statistical estimate from a uniform random subsample, not the true
median. Use compute_exact_median if an exact result is required.
stddev: f64Standard deviation
variance: f64Variance
sum: f64Sum of all values
Trait Implementations§
Source§impl Clone for RasterStatistics
impl Clone for RasterStatistics
Source§fn clone(&self) -> RasterStatistics
fn clone(&self) -> RasterStatistics
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 RasterStatistics
impl Debug for RasterStatistics
Source§impl PartialEq for RasterStatistics
impl PartialEq for RasterStatistics
impl StructuralPartialEq for RasterStatistics
Auto Trait Implementations§
impl Freeze for RasterStatistics
impl RefUnwindSafe for RasterStatistics
impl Send for RasterStatistics
impl Sync for RasterStatistics
impl Unpin for RasterStatistics
impl UnsafeUnpin for RasterStatistics
impl UnwindSafe for RasterStatistics
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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