承接 oefenweb/statistics 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

oefenweb/statistics

最新稳定版本:v3.0.1

Composer 安装命令:

composer require oefenweb/statistics

包简介

Statistics library for PHP

关键字:

README 文档

README

Build Status PHP 7 ready codecov Packagist downloads Code Climate Scrutinizer Code Quality

Statistics library for PHP.

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

统计信息

  • 总下载量: 369.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 32
  • Watchers: 2
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固