FluxPointEstimator

class gammapy.spectrum.FluxPointEstimator(obs, groups, model)[source]

Bases: object

Flux point estimator.

Parameters:

obs : SpectrumObservation

Spectrum observation

groups : SpectrumEnergyGroups

Energy groups (usually output of SpectrumEnergyGroupsMaker)

model : SpectralModel

Global model (usually output of SpectrumFit)

Methods Summary

compute_approx_model(global_model, energy_range) Compute approximate model, to be used in the energy bin.
compute_energy_ref(energy_group)
compute_flux_point(energy_group)
compute_points()
fit_point(model, energy_group, energy_ref)

Methods Documentation

static compute_approx_model(global_model, energy_range)[source]

Compute approximate model, to be used in the energy bin. TODO: At the moment just the global model with fixed parameters is returned

compute_energy_ref(energy_group)[source]
compute_flux_point(energy_group)[source]
compute_points()[source]
fit_point(model, energy_group, energy_ref)[source]