pub struct CountsFit {Show 14 fields
pub densities: Vec<f64>,
pub temperature_k: f64,
pub normalization: f64,
pub background: [f64; 3],
pub covariance: Option<FlatMatrix>,
pub on_bound: Vec<bool>,
pub beam: BeamSpline,
pub beam_at_limit: bool,
pub deviance: f64,
pub converged: bool,
pub overdispersion: Option<f64>,
pub step_us: f64,
pub points: usize,
pub halvings: usize,
}Expand description
The fitted densities, temperature, normalization and background.
Fields§
§densities: Vec<f64>Areal density of each isotope in atoms/barn, in the order given: the known one, or the fitted one.
temperature_k: f64The sample’s temperature in K: the known one, or the fitted one.
normalization: f64The normalization a: the known one, or the fitted one.
background: [f64; 3]b0 (dimensionless), b1 in √eV and b2 in 1/√eV, each the known or
the fitted one.
covariance: Option<FlatMatrix>Covariance of the fitted quantities among the densities, in the order
given, the temperature, the normalization, b0, b1 and b2, in
that order: the inverse of the expected information at the fit,
scaled by overdispersion, or at the Poisson scale when that is
None. The row and column of a quantity on one of its bounds, or
that the counts do not determine, are NaN, and the other entries are
conditional on every quantity that ended on a bound being held there;
every entry is NaN when a fitted temperature ends at 1 K or 5000 K.
None when the fit did not converge.
The error bars take the Calibration passed to fit_counts as
exact. They are not reliable where the counts barely determine a
fitted temperature or barely separate it from a density, as at few
counts or for a thin sample at modest counts.
on_bound: Vec<bool>Whether each fitted quantity, in the covariance’s order, ended on one of its bounds.
beam: BeamSplineThe beam per µs of flight time, fitted to both runs, with the intervals the open-beam fit chose.
beam_at_limit: boolWhether the open-beam fit chose its richest beam; see
OpenBeamFit::at_limit.
deviance: f64Half the Poisson deviance of both runs at the fit.
converged: boolWhether the fitter converged.
overdispersion: Option<f64>Variance of the counts of both runs over their Poisson variance, at
least 1, measured on the bins predicted at least one count. None
when the fit did not converge or those bins do not outnumber the
fitted parameters.
step_us: f64Step, in µs, of the fit’s grid.
points: usizeNumber of points of that grid.
halvings: usizeHow many times the grid of
FlightTimeGrid::new
was halved to reach it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CountsFit
impl RefUnwindSafe for CountsFit
impl Send for CountsFit
impl Sync for CountsFit
impl Unpin for CountsFit
impl UnsafeUnpin for CountsFit
impl UnwindSafe for CountsFit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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