pub struct PsfFit {Show 16 fields
pub model: PsfModel,
pub source: String,
pub method: String,
pub normalization: PsfNormalization,
pub psf: GaussianPsf,
pub parameter_names: Vec<String>,
pub values: Vec<f64>,
pub std_errors: Vec<f64>,
pub covariance: Vec<Vec<f64>>,
pub chi2: f64,
pub dof: usize,
pub reduced_chi2: f64,
pub bins_used: usize,
pub iterations: usize,
pub converged: bool,
pub residuals: Vec<PsfResidual>,
}Expand description
The result of fit_psf.
Fields§
§model: PsfModelThe fitted form.
source: StringWhere the normalised form comes from.
method: StringHow the fit was done.
normalization: PsfNormalizationHow E was set.
psf: GaussianPsfThe fitted PSF.
parameter_names: Vec<String>Parameter names, in the order of values, std_errors and
covariance.
values: Vec<f64>Fitted values (E first, fixed or fitted).
std_errors: Vec<f64>Standard errors, the square roots of the covariance diagonal.
covariance: Vec<Vec<f64>>Covariance matrix, row-major, not scaled by the reduced χ²: (Jᵀ W J)⁻¹ over the fitted parameters. Under
PsfNormalization::SlabTotal the E row and column hold only the
variance of the slab energy (RadialProfile::total_std_err_ev
squared); its covariances with the shape are not estimated and are 0.
chi2: f64χ² at the minimum.
dof: usizeDegrees of freedom: bins used minus fitted parameters.
reduced_chi2: f64χ² / dof.
bins_used: usizeBins used (positive error).
iterations: usizeLevenberg-Marquardt iterations.
converged: boolWhether the iterations stopped on a converged step rather than the iteration cap.
residuals: Vec<PsfResidual>Per-bin data, model and residuals (every bin of the profile).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PsfFit
impl<'de> Deserialize<'de> for PsfFit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for PsfFit
Auto Trait Implementations§
impl Freeze for PsfFit
impl RefUnwindSafe for PsfFit
impl Send for PsfFit
impl Sync for PsfFit
impl Unpin for PsfFit
impl UnsafeUnpin for PsfFit
impl UnwindSafe for PsfFit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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