pub struct ZonalCalculator { /* private fields */ }Expand description
Zonal statistics calculator
Implementations§
Source§impl ZonalCalculator
impl ZonalCalculator
Sourcepub fn with_statistics(self, stats: Vec<ZonalStatistic>) -> Self
pub fn with_statistics(self, stats: Vec<ZonalStatistic>) -> Self
Set statistics to calculate
Sourcepub fn with_no_data(self, value: f64) -> Self
pub fn with_no_data(self, value: f64) -> Self
Set no-data value
Sourcepub fn calculate(
&self,
values: &ArrayView2<'_, f64>,
zones: &ArrayView2<'_, i32>,
) -> Result<ZonalResult>
pub fn calculate( &self, values: &ArrayView2<'_, f64>, zones: &ArrayView2<'_, i32>, ) -> Result<ZonalResult>
Sourcepub fn calculate_multiband(
&self,
values: &ArrayView3<'_, f64>,
zones: &ArrayView2<'_, i32>,
) -> Result<Vec<ZonalResult>>
pub fn calculate_multiband( &self, values: &ArrayView3<'_, f64>, zones: &ArrayView2<'_, i32>, ) -> Result<Vec<ZonalResult>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZonalCalculator
impl RefUnwindSafe for ZonalCalculator
impl Send for ZonalCalculator
impl Sync for ZonalCalculator
impl Unpin for ZonalCalculator
impl UnsafeUnpin for ZonalCalculator
impl UnwindSafe for ZonalCalculator
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> 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