pub struct TraceDetectabilityConfig<'a> {
pub matrix_isotopes: &'a [(ResonanceData, f64)],
pub energies: &'a [f64],
pub i0: f64,
pub temperature_k: f64,
pub resolution: Option<&'a ResolutionFunction>,
pub snr_threshold: f64,
}Expand description
Configuration for a trace-detectability analysis.
Fields§
§matrix_isotopes: &'a [(ResonanceData, f64)]Matrix isotopes with their areal densities in atoms/barn.
Supports multi-isotope matrices (e.g., an alloy). The total matrix
density (sum of all densities) is used to convert trace ppm to
areal density: trace_density = trace_ppm × 1e-6 × total_matrix_density.
energies: &'a [f64]Energy grid in eV (sorted ascending).
i0: f64Expected counts per bin (for Poisson noise estimate).
temperature_k: f64Sample temperature in Kelvin.
resolution: Option<&'a ResolutionFunction>Optional resolution broadening function.
snr_threshold: f64Detection threshold (3.0 = standard 3σ detection limit).
Auto Trait Implementations§
impl<'a> Freeze for TraceDetectabilityConfig<'a>
impl<'a> RefUnwindSafe for TraceDetectabilityConfig<'a>
impl<'a> Send for TraceDetectabilityConfig<'a>
impl<'a> Sync for TraceDetectabilityConfig<'a>
impl<'a> Unpin for TraceDetectabilityConfig<'a>
impl<'a> UnwindSafe for TraceDetectabilityConfig<'a>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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