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)

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)[source]

Compute sqrt(TS) value.

Compute sqrt(TS) as defined by:

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

TS value.

Returns
sqrt_tsndarray

Sqrt(TS) value.

abstract run(datasets)[source]