pub struct RadialAccumulator { /* private fields */ }Expand description
Per-history accumulation of a radial profile (see
the module docs). Call
RadialAccumulator::deposit for every deposit of a history and
RadialAccumulator::end_history once at its end.
Implementations§
Source§impl RadialAccumulator
impl RadialAccumulator
Sourcepub fn deposit(&mut self, pos: [f64; 3], e: f64)
pub fn deposit(&mut self, pos: [f64; 3], e: f64)
A deposit of e eV at pos (m) in the current history. Ignored
outside the depth slab or for e <= 0.
Sourcepub fn end_history(&mut self)
pub fn end_history(&mut self)
Ends the current history: folds its bin totals and their squares.
Sourcepub fn merge(&mut self, o: &RadialAccumulator)
pub fn merge(&mut self, o: &RadialAccumulator)
Sourcepub fn profile(&self) -> RadialProfile
pub fn profile(&self) -> RadialProfile
The profile with per-bin standard errors.
Trait Implementations§
Source§impl Clone for RadialAccumulator
impl Clone for RadialAccumulator
Source§fn clone(&self) -> RadialAccumulator
fn clone(&self) -> RadialAccumulator
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 RadialAccumulator
impl Debug for RadialAccumulator
Source§impl PartialEq for RadialAccumulator
impl PartialEq for RadialAccumulator
impl StructuralPartialEq for RadialAccumulator
Auto Trait Implementations§
impl Freeze for RadialAccumulator
impl RefUnwindSafe for RadialAccumulator
impl Send for RadialAccumulator
impl Sync for RadialAccumulator
impl Unpin for RadialAccumulator
impl UnsafeUnpin for RadialAccumulator
impl UnwindSafe for RadialAccumulator
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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