Skip to content

add Lmoments method to calculate the Weibul distribution parameter #115

Description

@MAfarrag

Is your feature request related to a problem? Please describe.

  • the below function calculates parameter of the Weibul distribution based on the lmoments.
def weibull(lmoments):
    if len(lmoments) < 3:
        print("Insufficient L-Moments: Need 3")
        return
    if lmoments[1] <= 0 or lmoments[2] >= 1 or lmoments[2] <= -lmoments.lmrgum([0, 1], 3)[2]:
        print(LMOMENTS_INVALID_ERROR)
        return
    pg = Lmoments.GEV([-lmoments[0], lmoments[1], -lmoments[2]])
    delta = 1 / pg[2]
    beta = pg[1] / pg[2]
    out = [-pg[0] - beta, beta, delta]
    return (out)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions