pyspc.statistics.gradex.apply

pyspc.statistics.gradex.apply(pivot_value, pivot_period, target_period, gradex, smooth=False, gumbel=None)[source]

Appliquer le gradex à partir d’un point pivot

Paramètres:
  • pivot_value (float) – Valeur du pivot

  • pivot_period (int) – Temps de retour du pivot

  • target_period (int) – Temps de retour de la cible

  • gradex (float) – Valeur du gradex

  • smooth (bool) – Version progressive (True) ou brutale (False). Par défaut: False

  • gumbel (float) – Pente de l’ajustement de Gumbel sur les débits, si smooth=True.

Renvoie:

target_value – Valeur du pivot de la cible par le gradex

Type renvoyé:

float

Voir aussi

compute, rr2q

Exemples

>>> from pyspc.statistics.gradex import apply
>>> pivot_value = 74
>>> pivot_period = 10
>>> target_period = 100
>>> gradex = 23.2

CAS AJUSTEMENT “brut”

>>> apply(pivot_value, pivot_period, target_period, gradex)
128.515

CAS AJUSTEMENT “progressif”

>>> gumbel = 10
>>> apply(pivot_value, pivot_period, target_period, gradex,
...     smooth=True, gumbel=gumbel)
110.772