threeML.utils.spectrum.spectrum_likelihood module

class threeML.utils.spectrum.spectrum_likelihood.BinnedStatistic(spectrum_plugin)[source]

Bases: object

get_current_value()[source]
get_randomized_background_counts()[source]
get_randomized_background_errors()[source]
get_randomized_source_counts(source_model_counts)[source]
get_randomized_source_errors()[source]
threeML.utils.spectrum.spectrum_likelihood.GaussianObservedGaussianBackgroundStatistic

alias of NotAvailableStatistic

class threeML.utils.spectrum.spectrum_likelihood.GaussianObservedStatistic(spectrum_plugin)[source]

Bases: BinnedStatistic

get_current_value(precalc_fluxes: array | None = None)[source]
get_randomized_source_counts(source_model_counts)[source]
get_randomized_source_errors()[source]
class threeML.utils.spectrum.spectrum_likelihood.NotAvailableStatistic(spectrum_plugin)[source]

Bases: object

class threeML.utils.spectrum.spectrum_likelihood.PoissonObservedGaussianBackgroundStatistic(spectrum_plugin)[source]

Bases: BinnedStatistic

get_current_value(precalc_fluxes: array | None = None)[source]
get_randomized_background_counts()[source]
get_randomized_background_errors()[source]
get_randomized_source_counts(source_model_counts)[source]
class threeML.utils.spectrum.spectrum_likelihood.PoissonObservedIdealBackgroundStatistic(spectrum_plugin)[source]

Bases: BinnedStatistic

get_current_value(precalc_fluxes: array | None = None)[source]
get_randomized_background_counts()[source]
get_randomized_source_counts(source_model_counts)[source]
class threeML.utils.spectrum.spectrum_likelihood.PoissonObservedModeledBackgroundStatistic(spectrum_plugin)[source]

Bases: BinnedStatistic

get_current_value(precalc_fluxes: array | None = None)[source]
get_randomized_background_errors()[source]
get_randomized_source_counts(source_model_counts)[source]
property synthetic_background_plugin
class threeML.utils.spectrum.spectrum_likelihood.PoissonObservedNoBackgroundStatistic(spectrum_plugin)[source]

Bases: BinnedStatistic

get_current_value(precalc_fluxes: array | None = None)[source]
get_randomized_source_counts(source_model_counts)[source]
class threeML.utils.spectrum.spectrum_likelihood.PoissonObservedPoissonBackgroundStatistic(spectrum_plugin)[source]

Bases: BinnedStatistic

get_current_value(precalc_fluxes: array | None = None)[source]
get_randomized_background_counts()[source]
get_randomized_source_counts(source_model_counts)[source]