pub struct PoissonResult {
pub nll: f64,
pub iterations: usize,
pub converged: bool,
pub params: Vec<f64>,
pub covariance: Option<FlatMatrix>,
pub uncertainties: Option<Vec<f64>>,
}Expand description
Result of Poisson-likelihood optimization.
Fields§
§nll: f64Final negative log-likelihood.
iterations: usizeNumber of iterations taken.
converged: boolWhether the optimizer converged.
params: Vec<f64>Final parameter values (all parameters, including fixed).
covariance: Option<FlatMatrix>Local covariance estimate from the inverse Fisher information matrix
at the converged parameters: F⁻¹ = (J^T H J)⁻¹ where
H = diag(obs/model²) is the Poisson Hessian.
This is a local curvature estimate, NOT a Bayesian posterior.
When an analytical Jacobian is available, it is used directly.
Otherwise a finite-difference Jacobian is computed as fallback.
None when the fit did not converge, the Fisher matrix is
singular, or covariance computation is disabled via config.
uncertainties: Option<Vec<f64>>Standard errors of free parameters: √diag(F⁻¹).
None when covariance is not available.
Trait Implementations§
Source§impl Clone for PoissonResult
impl Clone for PoissonResult
Source§fn clone(&self) -> PoissonResult
fn clone(&self) -> PoissonResult
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 moreAuto Trait Implementations§
impl Freeze for PoissonResult
impl RefUnwindSafe for PoissonResult
impl Send for PoissonResult
impl Sync for PoissonResult
impl Unpin for PoissonResult
impl UnwindSafe for PoissonResult
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
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>
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