pub struct PoissonResult {Show 14 fields
pub deviance: f64,
pub iterations: usize,
pub converged: bool,
pub stop: Stop,
pub moving: Vec<usize>,
pub decrement: Option<f64>,
pub own: Option<(usize, f64)>,
pub rejected: Rejected,
pub params: Vec<f64>,
pub covariance: Option<FlatMatrix>,
pub uncertainties: Option<Vec<Option<f64>>>,
pub on_bound: Vec<bool>,
pub leverage: Option<Vec<f64>>,
pub unbounded: Option<Unbounded>,
}Expand description
Result of poisson_fit.
Fields§
§deviance: f64Half the Poisson deviance of the counts at params, without the
priors.
iterations: usizeNumber of steps taken.
converged: boolWhether the expected-information Newton decrement fell below 1e-6
inside the bounds: within about 0.0014 standard errors of a minimum
where the deviance is quadratic there. Also true where no step
lowered the objective with own below 1e-6 and its trial steps tested
that; see poisson_fit.
stop: StopThe rule that ended the fit.
moving: Vec<usize>The free parameters, by their place among them, that the direction holding most of the Newton decrement moves most, where the fit stopped at its step limit or with no step; empty otherwise.
decrement: Option<f64>The Newton decrement where the fit last took its slopes: the decrease
the expected information predicts is left. None before the first.
own: Option<(usize, f64)>The free parameter with the largest Newton decrement of its own, the
others held, and that decrement ½gⱼ²/Fⱼⱼ, where the fit last took
its slopes.
rejected: RejectedThe trial steps the fit rejected.
params: Vec<f64>Final parameter values (all parameters, including fixed).
covariance: Option<FlatMatrix>Covariance of the free parameters; the rows and columns of a
parameter without an error bar are NaN. None when the fit did not
converge or covariance computation is disabled.
uncertainties: Option<Vec<Option<f64>>>Standard error of each free parameter; None for a parameter on a
bound or with a component along a direction the data do not
determine, larger than the SVD’s rounding for that parameter. None
overall when covariance is.
on_bound: Vec<bool>Whether each free parameter ended on one of its bounds.
leverage: Option<Vec<f64>>Each count’s leverage: the diagonal of the hat matrix of the free
parameters off their bounds. The leverages sum to the number of
directions in those parameters the counts and priors determine, less
the share the priors take. None when covariance is None or its
decomposition fails.
unbounded: Option<Unbounded>The free parameters’ Gaussian without their bounds; see Unbounded.
None when covariance is, when the decomposition over every free
parameter fails, or when a bin predicted zero adds slope to the
gradient of a parameter on a bound.
Trait Implementations§
Source§impl Clone for PoissonResult
impl Clone for PoissonResult
Source§fn clone(&self) -> PoissonResult
fn clone(&self) -> PoissonResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more