2017 © Pedro Peláez
 

library phpquartiles

PHP package for working out quartile values and placements based on a numeric array

image

piercemcgeough/phpquartiles

PHP package for working out quartile values and placements based on a numeric array

  • Friday, January 27, 2017
  • by piercemcgeough
  • Repository
  • 3 Watchers
  • 3 Stars
  • 135 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

phpquartiles

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

PHP package for working out quartile values and placements based on a numeric array., (*2)

phpquartiles will return the 1st, 2nd and 3rd quartiles. You can also then find the quartile placement of a given score., (*3)

Install

Via Composer, (*4)

$ composer require PierceMcGeough/phpquartiles, (*5)

Usage

$scoresArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
$quartiles = new PierceMcGeough\phpquartiles\Quartile();

Quartile Commands

$quartiles->getAllQuartiles();
/**
 *  returns
 *
 *  [
 *      [q1] => 4
 *      [q2] => 8
 *      [q3] => 12
 *  ]
 */


$quartiles->getFirstQuartile();
/**
 *  returns
 *
 *  4
 */


$quartiles->getMedianQuartile();
/**
 *  returns
 *
 *  8
 */


$quartiles->getSecondQuartile();
/**
 *  alias of getMedianQuartile()
 *  returns
 *
 *  8
 */


$quartiles->getThirdQuartile();
/**
 *  returns
 *
 *  12
 */

Placement Commands

$quartiles->getPlacement(15);
/**
 *  returns
 *
 *  HIGHEST_QUARTILE
 */


$quartiles->getPlacementInverse(15);
/**
 *  returns
 *
 *  LOWEST_QUARTILE
 */

Change log

Please see CHANGELOG for more information on what has changed recently., (*6)

Testing

bash $ composer test, (*7)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*8)

Security

If you discover any security related issues, please email pmcgeough@hotmail.co.uk instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

27/01 2017

dev-master

9999999-dev https://github.com/PierceMcGeough/phpquartiles

PHP package for working out quartile values and placements based on a numeric array

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

piercemcgeough phpquartiles

27/01 2017

v1.0.0

1.0.0.0 https://github.com/PierceMcGeough/phpquartiles

PHP package for working out quartile values and placements based on a numeric array

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

piercemcgeough phpquartiles