threeML.utils.fitted_objects package

Submodules

threeML.utils.fitted_objects.fitted_point_sources module

class threeML.utils.fitted_objects.fitted_point_sources.DifferentialFluxConversion(flux_unit, energy_unit, flux_model, test_model)[source]

Bases: FluxConversion

class threeML.utils.fitted_objects.fitted_point_sources.FittedPointSourceSpectralHandler(analysis_result, source, energy_range, energy_unit, flux_unit, confidence_level=0.68, equal_tailed=True, component=None, is_differential_flux=True)[source]

Bases: GenericFittedSourceHandler

property components

the components of the function

Type:

return

property is_dimensionless
class threeML.utils.fitted_objects.fitted_point_sources.FluxConversion(flux_unit, energy_unit, flux_model)[source]

Bases: object

property conversion_factor

the conversion factor needed to finalize the model into the proper units after computations

Returns:

property is_dimensionless
property model

the model converted

Returns:

a model in the proper units

class threeML.utils.fitted_objects.fitted_point_sources.IntegralFluxConversion(flux_unit, energy_unit, flux_model, test_model)[source]

Bases: FluxConversion

exception threeML.utils.fitted_objects.fitted_point_sources.InvalidUnitError[source]

Bases: RuntimeError

exception threeML.utils.fitted_objects.fitted_point_sources.NotCompositeModelError[source]

Bases: RuntimeError

threeML.utils.fitted_objects.fitted_point_sources.trap_integral(func, e1, e2, **args)[source]

threeML.utils.fitted_objects.fitted_source_handler module

class threeML.utils.fitted_objects.fitted_source_handler.GenericFittedSourceHandler(analysis_result, new_function, parameter_names, parameters, confidence_level, equal_tailed, *independent_variable_range)[source]

Bases: object

property average

the average of the variates

Type:

return

property lower_error

the lower error of the variates

Type:

return

property median

the median of the variates

Type:

return

property samples

the raw samples of the variates

Type:

return

update_tag(tag, value)[source]
property upper_error

the upper error of the variates

Type:

return

property values

The VariatesContainer

Type:

return

class threeML.utils.fitted_objects.fitted_source_handler.VariatesContainer(values, out_shape, cl, transform, equal_tailed=True)[source]

Bases: object

property average

the transformed average

Type:

return

property lower_error

the transformed lower error

Type:

return

property median

the transformed median

Type:

return

property samples

the transformed raw samples

Type:

return

property upper_error

the transformed upper error

Type:

return

property values

the list of of RandomVariates

Type:

return

threeML.utils.fitted_objects.fitted_source_handler.transform(method)[source]

A wrapper to call the _transform method for outputs of Variates container class :param method: :return:

Module contents