wolfhece.eva.mixture_models

Author: HECE - University of Liege, Pierre Archambeau Date: 2024

Copyright (c) 2024 University of Liege. All rights reserved.

This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.

Module Contents

class wolfhece.eva.mixture_models.MixtureModel(component_distributions, ps)[source]

Modèle de mélange

ppf(p)[source]

Return the pth quantile of the mixture distribution given by the component distributions and their probabilities

Defined like function enabling overloading (ex.: SeasonMixtureModel)

plots(fig=None, axes=None, show=True)[source]

Graphique de la cdf et de la pdf

class wolfhece.eva.mixture_models.SeasonMixtureModel(component_distributions, ps)[source]

Bases: MixtureModel

Inheritance diagram of wolfhece.eva.mixture_models.SeasonMixtureModel

Extension d’un MixtureModel pour tenir compte directement de l’adaptation de la probabilité sur base de 2 saisons sur une année

Les variables et résultats des fonctions cdf et ppf s’expriment en probabilité annuelle

Liaison entre période de retour annuelle (T) et probabilité cumulée/de non-dépassement (F)

$ T = 1/(1-F^2) $

plots(fig=None, axes=None, show=True)[source]

Graphique de la cdf et de la pdf

wolfhece.eva.mixture_models._nnlf_wgen(x0, data, weights)[source]
wolfhece.eva.mixture_models._nnlf_wgum(x0, data, weights)[source]
wolfhece.eva.mixture_models._nnlf_gen(x0, data)[source]
wolfhece.eva.mixture_models.fit_wgev(data, weights, shape=None, loc=None, scale=None)[source]

Fit d’une loi GEV avec des poids attachés aux données

wolfhece.eva.mixture_models.fit_mixture_gev(data, fig, ax, sols)[source]

Fit d’une loi de mélange sur base d’un algo “simple” d’Espérance-Maximisation

wolfhece.eva.mixture_models.example_em()[source]

voir https://dridk.me/expectation-maximisation.html

wolfhece.eva.mixture_models.example_one_gev()[source]
wolfhece.eva.mixture_models.example_mixture_gev()[source]
wolfhece.eva.mixture_models.test_mixture()[source]
wolfhece.eva.mixture_models.test_season_mixture()[source]