piercemcgeough/phpquartiles 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

piercemcgeough/phpquartiles

Composer 安装命令:

composer require piercemcgeough/phpquartiles

包简介

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

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

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

Install

Via Composer

$ composer require PierceMcGeough/phpquartiles

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.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

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

Credits

License

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

统计信息

  • 总下载量: 768
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固