hepstats.hypotests.core.basetest module#

class hepstats.hypotests.core.basetest.BaseTest(calculator, poinull, poialt=None)[source]#

Bases: object

Base class for hypothesis tests.

Parameters:
  • calculator (BaseCalculator) – calculator to use for computing the pvalues

  • poinull (Union[POI, POIarray]) – parameters of interest for the null hypothesis

  • poialt (Union[POI, POIarray, None]) – parameters of interest for the alternative hypothesis

Raises:

TypeError – if calculator is not a BaseCalculator instance

property poinull#

Returns the POI for the null hypothesis.

property poialt#

Returns the POI for the alternative hypothesis.

property calculator#

Returns the calculator.