pub struct JointPoissonResult {Show 13 fields
pub deviance: f64,
pub deviance_per_dof: f64,
pub n_data: usize,
pub n_active: usize,
pub n_free: usize,
pub gn_iterations: usize,
pub polish_iterations: usize,
pub gn_converged: bool,
pub polish_converged: bool,
pub polish_improved: bool,
pub params: Vec<f64>,
pub covariance: Option<FlatMatrix>,
pub uncertainties: Option<Vec<f64>>,
}Expand description
Outcome of joint_poisson_fit.
Fields§
§deviance: f64Final deviance D at the fitted parameters.
deviance_per_dof: f64D / (n − k). Primary GOF statistic per memo 35 §P1.2.
n_data: usizeNumber of data bins on the configured grid (n). This is the
total bin count; when a fit-energy-range mask is in effect, the
count of bins that actually contributed to the cost function is
reported separately as Self::n_active.
n_active: usizeNumber of active data bins — equal to n_data when no mask is
set, or the count of true entries in the objective’s
active_mask otherwise. The deviance / dof ratio uses
(n_active − n_free) so reduced deviance is unbiased when a
fit-energy-range mask is in effect (SAMMY EMIN/EMAX semantics, #514).
n_free: usizeNumber of free parameters (k).
gn_iterations: usizeIterations performed in the damped-Fisher stage.
polish_iterations: usizeIterations performed by the Nelder-Mead polish stage (0 if disabled).
gn_converged: booltrue when the stage-1 (damped Fisher) optimizer met its tol_d
and tol_param criteria before hitting max_iter.
polish_converged: booltrue when the Nelder-Mead polish met xatol and fatol before
max_iter (always false if enable_polish == false).
polish_improved: booltrue when the polish step lowered the deviance below the stage-1
best value. Useful diagnostic — if polish improved D materially,
stage 1 likely stalled.
params: Vec<f64>Final parameter values (all parameters, including fixed).
covariance: Option<FlatMatrix>Inverse Fisher covariance of free parameters (n_free × n_free),
computed at the final θ. None if the Fisher matrix was singular
or compute_covariance == false.
uncertainties: Option<Vec<f64>>√diag(covariance) for each free parameter, in free-index order.
Trait Implementations§
Source§impl Clone for JointPoissonResult
impl Clone for JointPoissonResult
Source§fn clone(&self) -> JointPoissonResult
fn clone(&self) -> JointPoissonResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for JointPoissonResult
impl RefUnwindSafe for JointPoissonResult
impl Send for JointPoissonResult
impl Sync for JointPoissonResult
impl Unpin for JointPoissonResult
impl UnsafeUnpin for JointPoissonResult
impl UnwindSafe for JointPoissonResult
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