pub struct NeutronStatistics {
pub count: usize,
pub mean_tof: f64,
pub std_tof: f64,
pub mean_tot: f64,
pub mean_cluster_size: f64,
pub single_hit_fraction: f64,
pub x_range: (f64, f64),
pub y_range: (f64, f64),
pub tof_range: (u32, u32),
}Expand description
Statistics for a collection of neutrons.
Fields§
§count: usizeNumber of neutrons in the sample.
mean_tof: f64Mean time-of-flight (25ns units).
std_tof: f64Standard deviation of time-of-flight (25ns units).
mean_tot: f64Mean time-over-threshold.
mean_cluster_size: f64Mean cluster size (hits per neutron).
single_hit_fraction: f64Fraction of single-hit neutrons.
x_range: (f64, f64)Min/max X coordinate.
y_range: (f64, f64)Min/max Y coordinate.
tof_range: (u32, u32)Min/max time-of-flight (25ns units).
Implementations§
Source§impl NeutronStatistics
impl NeutronStatistics
Sourcepub fn from_neutrons(neutrons: &[Neutron]) -> Self
pub fn from_neutrons(neutrons: &[Neutron]) -> Self
Calculate statistics from a slice of neutrons.
Trait Implementations§
Source§impl Clone for NeutronStatistics
impl Clone for NeutronStatistics
Source§fn clone(&self) -> NeutronStatistics
fn clone(&self) -> NeutronStatistics
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 NeutronStatistics
impl Debug for NeutronStatistics
Source§impl Default for NeutronStatistics
impl Default for NeutronStatistics
Source§fn default() -> NeutronStatistics
fn default() -> NeutronStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NeutronStatistics
impl RefUnwindSafe for NeutronStatistics
impl Send for NeutronStatistics
impl Sync for NeutronStatistics
impl Unpin for NeutronStatistics
impl UnwindSafe for NeutronStatistics
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