pub struct PsfReport {
pub profile: RadialProfile,
pub fits: Vec<PsfFit>,
}Expand description
A radial profile and its fits, for export.
Fields§
§profile: RadialProfileThe profile.
fits: Vec<PsfFit>Its fits.
Implementations§
Source§impl PsfReport
impl PsfReport
Sourcepub fn profile_csv(&self) -> String
pub fn profile_csv(&self) -> String
The profile as CSV, one row per bin, with the model energy of each fit
(model_<model>_ev) and the areal densities. Columns: r_lo_m,
r_hi_m, r_center_m, area_m2, energy_ev, std_err_ev,
density_ev_per_m2, density_std_err_ev_per_m2, then one per fit.
Sourcepub fn parameters_csv(&self) -> String
pub fn parameters_csv(&self) -> String
The fitted parameters as CSV: model,parameter,value,std_error, then
one chi2, dof, reduced_chi2, converged (1 or 0) and
iterations row per fit (with an empty error). The last two are the
fit’s own diagnostics: a converged of 0 means the iteration budget
ran out and the parameters are the last iterate.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PsfReport
impl<'de> Deserialize<'de> for PsfReport
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PsfReport
Auto Trait Implementations§
impl Freeze for PsfReport
impl RefUnwindSafe for PsfReport
impl Send for PsfReport
impl Sync for PsfReport
impl Unpin for PsfReport
impl UnsafeUnpin for PsfReport
impl UnwindSafe for PsfReport
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
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> ⓘ
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