ivanciric/gtp-estimator
Composer 安装命令:
composer require ivanciric/gtp-estimator
包简介
German Tank Problem Estimator
README 文档
README
German Tank Problem estimator in PHP
Installation
In composer.json file add the following in the require array:
"ivanciric/gtp-estimator": "0.0.*"
Usage
See example.php file.
Suppose k = 4 tanks with serial numbers 19, 40, 42 and 60 are captured. The maximal observed serial number, m = 60. The unknown total number of tanks is called N.
The formula for estimating the total number of tanks suggested by the frequentist approach outlined below is
N ≈ m + m/k − 1 = 74
Using GtpEstimator:
$estimate = Ivanciric\GtpEstimator\GtpEstimator::estimate(4, 60);
Wikipedia: https://en.wikipedia.org/wiki/German_tank_problem
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-12