pyspc.statistics.freq.to_period
- pyspc.statistics.freq.to_period(f, highflow=None, asint=None, check=None)[source]
Convertir un temps de retour en fréquence au non-dépassement.
- Paramètres:
f (float) – Fréquence au non-dépassement
highflow (bool) – Hautes eaux (True) ou Basses eaux (False). Défaut: True
asint (bool) – Valeurs entières. Défaut: True
check (bool) – Contrôler la fréquence entre 0 et 1. Défaut: True
- Renvoie:
t – Temps de retour
- Type renvoyé:
int
Exemples
>>> from pyspc.statistics.freq import to_period >>> to_period(0.5) 2 >>> to_period(0.9) 10 >>> to_period(0.1, highflow=False) 10