2017 © Pedro Peláez
 

library statistics

Statistics library for PHP

image

oefenweb/statistics

Statistics library for PHP

  • Wednesday, July 25, 2018
  • by oefenweb
  • Repository
  • 4 Watchers
  • 17 Stars
  • 91,191 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

php-statistics

Build Status PHP 7 ready codecov Packagist downloads Code Climate Scrutinizer Code Quality, (*1)

Statistics library for PHP., (*2)

Requirements

  • PHP 7.2.0 or greater.

Usage

Sum

use Oefenweb\Statistics\Statistics;

Statistics::sum([1, 2, 3]); // 6

Minimum

use Oefenweb\Statistics\Statistics;

Statistics::min([1, 2, 3]); // 1

Maximum

use Oefenweb\Statistics\Statistics;

Statistics::max([1, 2, 3]); // 3

Mean

use Oefenweb\Statistics\Statistics;

Statistics::mean([1, 2, 3]); // 2

Frequency

use Oefenweb\Statistics\Statistics;

Statistics::frequency([1, 2, 3, 3, 3]); // [1 => 1, 2 => 1, 3 => 3]

Mode

use Oefenweb\Statistics\Statistics;

Statistics::mode([1, 2, 2, 3]); // 2

Variance (sample and population)

use Oefenweb\Statistics\Statistics;

Statistics::variance([1, 2, 3]); // 1
Statistics::variance([1, 2, 3], false); // 0.66666666666667

Standard deviation (sample and population)

use Oefenweb\Statistics\Statistics;

Statistics::standardDeviation([1, 2, 3]); // 1.0
Statistics::standardDeviation([1, 2, 3], false); // 0.81649658092773

Range

use Oefenweb\Statistics\Statistics;

Statistics::range([4, 6, 10, 15, 18]); // 14

The Versions

25/07 2018

dev-master

9999999-dev http://github.com/Oefenweb/php-statistics

Statistics library for PHP

  Sources   Download

MIT

The Requires

 

statistics

25/07 2018

v1.1.2

1.1.2.0 http://github.com/Oefenweb/php-statistics

Statistics library for PHP

  Sources   Download

MIT

The Requires

 

statistics

28/09 2017

v1.1.1

1.1.1.0 http://github.com/Oefenweb/php-statistics

Statistics library for PHP

  Sources   Download

MIT

The Requires

 

statistics

23/03 2016

v1.1.0

1.1.0.0 http://github.com/Oefenweb/php-statistics

Statistics library for PHP

  Sources   Download

MIT

The Requires

 

statistics

10/06 2015

v1.0.1

1.0.1.0 http://github.com/Oefenweb/php-statistics

Statistics library for PHP

  Sources   Download

MIT

The Requires

 

statistics

10/06 2015

v1.0.0

1.0.0.0 http://github.com/Oefenweb/php-statistics

Statistics library for PHP

  Sources   Download

MIT

The Requires

 

statistics