pyspc.statistics.period.to_freq
- pyspc.statistics.period.to_freq(t, highflow=None, check=None)[source]
Convertir un temps de retour en fréquence au non-dépassement
- Paramètres:
t (int) – Temps de retour
highflow (bool) – Hautes eaux (True) ou Basses eaux (False). Défaut: True
check (bool) – Contrôler ou non le caractère entier de t. Défaut: True
- Renvoie:
freq – Fréquence au non-dépassement
- Type renvoyé:
float
Exemples
>>> from pyspc.statistics.period import to_freq >>> to_freq(2) 0.5 >>> to_freq(10) 0.9 >>> to_freq(10, highflow=False) 0.1