Giter Club home page Giter Club logo

extreme-value-analysis's Introduction

Extreme Value Method

Used to predict the gust wind speeds for large return periods. There are two families of methods contains in this package; annual maxima and independent storms.

Annual maxima:

  • Gumbel
  • Gringorten
  • Method of Moments

Independent Storms:

  • Peaks-Over-Threshold
  • Improved Method of Independent Storms (IMIS) (still a work in progress)

All methods take an array of gust winds speeds and returns a function. This function takes the return period in years and returns the gust wind speed for that return period.

Installing the library

This library has been written using Python 3.6 but should work for Python 3.2 onwards.

This python package has been written to work with python's built in installer: pip install. To add this library to your installation it is as simple as:

> pip install git+https://github.com/aldiamond/extreme-value-analysis.git

Using the library

import numpy as np

from extremevaluemethod.annualmaxima import gumbel, gringorten, method_of_moments
from extremevaluemethod.independentstorms import peaks_over_threshold

# example annual maximum gusts array
gusts = np.array([25.0, 27.0, 31.3, 30.5, 30.1, 29.4, 34.8, 24.3])

fn, measured_data = gumbel(gusts)

return_period = 1000 # years

gust_wind_speed = fn(1000) # gust wind speed for 1000 year event

# example independent storm maximum gusts array
gusts = np.array([23.0, 21.0, 31.3, 30.5, 30.1, 29.4, 34.8, 24.3])
no_years = 3

fn = peaks_over_threshold(gusts, no_years)

return_period = 1000 # years

gust_wind_speed = fn(1000) # gust wind speed for 1000 year event

To get help on how to use a function, use python in interative mode and enter help(gumbel).

Contributing

We welcome any contributions! Either raise an issue on gitlab and we will attempt to update the library or make the changes yourself and submit a pull request.

Contact us

Contact details can be found on the AUTHORS page.

extreme-value-analysis's People

Contributors

aldiamond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.