qis.SignalMapType

class qis.SignalMapType(*values)[source]

Bases: Enum

shape of the signal-to-weight map in map_signal_to_weight.

With eta = (y - loc) / scale:

Variables:
  • NormalCDF – 2 * Phi(eta) - 1; odd about loc, bounded in (-1, 1), slope sqrt(2 / pi) / scale at the centre. Uses loc and scale only

  • LaplaceCDF – sign(eta) * (1 - exp(-|eta|)); slope 1 / scale at the centre, exponential approach to the bound. Uses loc and scale only

  • ExpCDF – not a CDF of an exponential law despite its name. A Gaussian-shaped saturating map +-tail_level * (1 - exp(-(y - loc)^2 / omega)), quadratic and so of zero slope at loc, which damps small signals. scale acts as a variance: the weight is +slope_right at y - loc = 1.25 sqrt(scale) and -slope_left at y - loc = -1.25 sqrt(scale), and tends to +-tail_level; optional tail decays fade extreme signals

__init__(*args, **kwds)

Attributes

NormalCDF = 1
LaplaceCDF = 2
ExpCDF = 3