Estimator

class gammapy.estimators.Estimator[source]

Bases: abc.ABC

Abstract estimator base class.

Attributes Summary

config_parameters

Config parameters

selection_optional

tag

Methods Summary

copy()

Copy estimator

get_sqrt_ts(ts, norm)

Compute sqrt(TS) value.

run(datasets)

Attributes Documentation

config_parameters

Config parameters

selection_optional
tag

Methods Documentation

copy()[source]

Copy estimator

static get_sqrt_ts(ts, norm)[source]

Compute sqrt(TS) value.

Compute sqrt(TS) as defined by:

\[\begin{split}\sqrt{TS} = \left \{ \begin{array}{ll} -\sqrt{TS} & : \text{if} \ norm < 0 \\ \sqrt{TS} & : \text{else} \end{array} \right.\end{split}\]
Parameters
tsndarray

TS value.

normndarray

norm value

Returns
——-
sqrt_tsndarray

Sqrt(TS) value.

abstract run(datasets)[source]