lmoments package is installed for Pycharm, using anaconda3 interpreter, functions can not be recalled
lmoments package is installed, available
import lmoments is done, no problem
anaconda3 interpreter is used
Using these functions;
# Estimate L-moments
l_moments = lmoments.samlmu(true_P)
# Choose a distribution (e.g., Generalized Extreme Value, 'gev')
dist = 'gev'
# Fit the distribution to the L-moments
params = lmoments.pelgev(l_moments)
# Set a threshold based on the fitted distribution and desired quantile
quantile = 0.95 # Adjust as needed
threshold = lmoments.quagev(quantile, *params)
Getting errors "AttributeError: module 'lmoments' has no attribute 'samlmu'" "pelgev" "quagev"
Please sign in to leave a comment.