ModelFit¶
- class gdt.core.spectra.parameters.ModelFit[source]¶
Bases:
objectA container for the info resulting from a spectral fit.
Attributes Summary
The covariance matrix of the fit
The degrees-of-freedom of the fit
The energy fluence
The energy flux
The energy range of the flux and fluence, (low, high)
The name of the model
A list of model parameters
The photon fluence
The photon flux
The name of the fit statistic
The fit statistic value
The time range of the model fit, (low, high)
Methods Summary
from_data(name, time_range, **kwargs)Create a ModelFit object from data.
Return the list of parameter names
Attributes Documentation
- covariance¶
The covariance matrix of the fit
- Type:
(np.array)
- dof¶
The degrees-of-freedom of the fit
- Type:
(int)
- energy_fluence¶
The energy fluence
- Type:
- energy_flux¶
The energy flux
- Type:
- flux_energy_range¶
The energy range of the flux and fluence, (low, high)
- Type:
(tuple)
- name¶
The name of the model
- Type:
(str)
- photon_fluence¶
The photon fluence
- Type:
- photon_flux¶
The photon flux
- Type:
- stat_name¶
The name of the fit statistic
- Type:
(str)
- stat_value¶
The fit statistic value
- Type:
(float)
- time_range¶
The time range of the model fit, (low, high)
- Type:
(float, float)
Methods Documentation
- classmethod from_data(name, time_range, **kwargs)[source]¶
Create a ModelFit object from data.
- Parameters:
name (str) – The name of the model
time_range (float, float) – The time range of the model fit, (low, high)
parameters (list, optional) – A list of model parameters
photon_flux (
PhotonFlux, optional) – The photon fluxenergy_flux (
EnergyFlux, optional) – The energy fluxphoton_fluence (
PhotonFluence, optional) – The photon fluenceenergy_fluence (
EnergyFluence, optional) – The energy fluenceflux_energy_range (tuple, optional) – The energy range of the flux and fluence, (low, high)
stat_name (str, optional) – The name of the fit statistic
stat_value (float, optional) – The fit statistic value
dof (int, optional) – The degrees-of-freedom of the fit
covariance (np.array, optional) – The covariance matrix of the fit
- Returns:
(
ModelFit)