Download the PHP package gburtini/distributions without Composer

On this page you can find all versions of the php package gburtini/distributions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package distributions

Probability Distributions for PHP

Build Status

A userland PHP implementation of a number of tools for working with statistical distributions in PHP.

Compatibility: PHP 5.4 and above. Tested and supported on 5.4 through 7.1 as well as nightly. We do not currently support hhvm.

Installation

This package is available in Packagist/Composer as gburtini/distributions. For noncomposer uses, clone the repository and require files directly.

Supported Distributions

The name given here is the name of the class.

All supported distributions are in the namespace gburtini\Distributions and implement the following interface. Implementing new distributions is as easy as extending gburtini\Distributions\Distribution or one of the existing implementations.

Interface

Namespaces

gburtini\Distributions contains the distribution classes as indicated above. gburtini\Distributions\Accessories contains BetaFunction and GammaFunction, two classes containing accessory functions for computing complete, incomplete and inverse beta and gamma functions numerically.

Example

Examples are provided in a comment at the top of most of the implementation files. In general, you should be able to use the parametrization listed above under "Supported Distributions" to create classes that implement the methods under "Interfaces".

Alternatives

There is a Statistics Functions package in PECL called stats which I have never been able to get to work and has been very quiet since 2006. There is plenty of code for individual distributions around the web, StackOverflow, etc., but in my experience it is hit and miss. To whatever extent possible, I would be happy to (but have not yet) wrap the stats_ functions (if function_exists) where they have functionality that this package does not.

Future Work

Pull Requests

I will happily merge any new distributions (ideally with tests, but I'm even happy to write the tests), improvements to my code, etc. Please submit a pull request or send me an email.

Contributions

Fork repository, clone to your own computer and install dependencies:

composer install

Run tests

./vendor/bin/phpunit

License

MIT licensed. Please contact me if this does not work for your use-case.


All versions of distributions with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gburtini/distributions contains the following files

Loading the files please wait ....