GithubHelp home page GithubHelp logo

up-rs-esp / bpl Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 874 KB

Python module to work with bounded power-law (BPL) distributed random variables.

License: GNU General Public License v3.0

Python 100.00%

bpl's Introduction

bpl

Python module to work with bounded power-law (BPL) distributed random variables.

This module contains a few basic functions that help analyse power-law distributed random variables that can be either bounded only from below or from both above and below. It provides the following functions:

  1. Generate random samples from power-law distributed random variables.
  2. Estimate a logarithimically binned histogram for a power-law distributed random variable.
  3. Estimate the probability density function and the cumulative distribution function for specified power-law exponent.

Installation

  1. Simply clone this repository and copy bpl.py in the directory where you are working in.

  2. Alternatively, you can clone this repository to a desired directory of your choice and then create and Python startup file .pythonstartup in your home directory as:

import sys
import os
home = os.path.expanduser("~")
sys.path.append(home + "/<path_to_package>")

Save the file, and that's it! From then on, all python shells should be able to detect (and import) the bpl package without any problem.

Documentation

An overview of the functions and its usage can be found at: http://up-rs-esp.github.io/bpl

Examples

An example script example.py is included in the repository.

License

Copyright (c) 2016 Bedartha Goswami

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,USA.

Author

Bedartha Goswami [email protected]

About this file

Created: Tue May 24, 2016 09:42PM

Last modified: Wed May 25, 2016 10:16PM

bpl's People

Contributors

bedartha avatar

Stargazers

 avatar  avatar

Watchers

 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.