An error occurred while loading the file. Please try again.
-
Le Roux Erwan authored
[exceeding] add full diagnositic plot (qqplot & intensity plots) for gumbel stationary & add gumbel gof tests from r package
c299e2b0
import numpy as np
from extreme_fit.model.result_from_model_fit.abstract_result_from_model_fit import AbstractResultFromModelFit
from extreme_fit.model.utils import r
def cramer_von_mises_and_anderson_darling_tests_pvalues_for_gumbel_distribution(data):
res = r.gnfit(data, "gum")
res = AbstractResultFromModelFit.get_python_dictionary(res)
res = {k: np.array(v)[0] for k, v in res.items()}
return res['Wpval'], res['Apval']
if __name__ == '__main__':
cramer_von_mises_and_anderson_darling_tests_pvalues_for_gumbel_distribution(np.array([2.0, 3.0]))