Giter Club home page Giter Club logo

pertdist's Introduction

PertDist

A scipy-like implementation of the PERT distribution.

Motivation

In my current job I work a fair amount with the PERT (also known as Beta-PERT) distribution, but there's currently no implementation of this in scipy. To make up the deficency I crafted up my own PERT distribution class, leveraging numpy and scipy to properly flesh out the functionality. The API is heavily modeled after the scipy.stats methods API's.

Build Status

TODO: when I figure out how in blazes to add these ;-)

Installation

Installation is straightforward: pip install pertdist

Code Example

Usage is very similar to what you would find in a scipy.stats class as well:

from pert import PERT
import seaborn as sns

pert = PERT(10, 190, 200)
sns.kdeplot(pert.rvs(10000))

On running this you should see a chart of a heavily low/left skewed distribution (recommended running in Jupyter or Spyder).

Roadmap

  • Develop unit tests
    • Especially around flexible identification of various data types, eg: accepting DataFrames, Series, lists, etc.
  • Build out the following scipy function analogues:
    • moment
    • entropy
    • fit
    • expect
    • mean
    • var
    • std
    • stats (implemented, but needs refinement)

A version history is located here

Contributing

Since this is my first published project, I'm pretty relaxed about contributions. Feel free to send me a pull request with any updates/changes/etc you have in mind!

Note that I do follow Vincent Driessen's Git Branching Model rather rigorously. If you do contribute, it'll most likely be pulled into the develop branch.

Also, I'm rather fond of Semantic Commit Messages, but I'm only picky about those for my own contributions, feel free to use wahtever commit message style you'd like.

License

This project uses the GNU General Public License.

Short version: Have fun and use it for whatever, just make sure to attribute me for it (-:

pertdist's People

Watchers

 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.