pub struct ExposureConfig {
pub volumes: Vec<ExposureVolume>,
pub beam: BeamProfile,
pub seed: u64,
pub bins: usize,
pub x_max_ev: f64,
pub lambda: f64,
pub quantiles: Vec<f64>,
pub below_ev: Vec<f64>,
pub above_ev: Vec<f64>,
pub tail_tolerance: f64,
}Expand description
Settings of the exposure tally.
Fields§
§volumes: Vec<ExposureVolume>The volumes (a neighbour is simply another volume at its offset).
beam: BeamProfileBeam profile.
seed: u64Seed of the landing-offset stream (independent of the transport’s).
bins: usizeBins of the histogram of X.
x_max_ev: f64Upper edge of the histogram, eV.
lambda: f64Mean number of incident electrons λ of the exposure.
quantiles: Vec<f64>Probabilities p in (0, 1) whose quantiles of S are reported.
below_ev: Vec<f64>Thresholds a, eV, for P(S < a).
above_ev: Vec<f64>Thresholds b, eV, for P(S > b).
tail_tolerance: f64Poisson tail mass dropped from the convolution.
Implementations§
Source§impl ExposureConfig
impl ExposureConfig
Sourcepub fn validate(&self) -> Result<(), ExposureError>
pub fn validate(&self) -> Result<(), ExposureError>
Checks the configuration.
Trait Implementations§
Source§impl Clone for ExposureConfig
impl Clone for ExposureConfig
Source§fn clone(&self) -> ExposureConfig
fn clone(&self) -> ExposureConfig
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 ExposureConfig
impl Debug for ExposureConfig
Source§impl<'de> Deserialize<'de> for ExposureConfig
impl<'de> Deserialize<'de> for ExposureConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExposureConfig
impl PartialEq for ExposureConfig
Source§impl Serialize for ExposureConfig
impl Serialize for ExposureConfig
impl StructuralPartialEq for ExposureConfig
Auto Trait Implementations§
impl Freeze for ExposureConfig
impl RefUnwindSafe for ExposureConfig
impl Send for ExposureConfig
impl Sync for ExposureConfig
impl Unpin for ExposureConfig
impl UnsafeUnpin for ExposureConfig
impl UnwindSafe for ExposureConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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