webit/downsampling
最新稳定版本:2.0.0
Composer 安装命令:
composer require webit/downsampling
包简介
Downsampling algorithms
README 文档
README
A simple interface for Downsampling algorithms
Installation
via Composer
Add the webit/downsampling into composer.json
{
"require": {
"php": ">=7.1",
"webit/downsampling": "^2.0.0"
}
}
Usage
use Webit\DownSampling\DownSampler\LargestTriangleThreeBucketsDownSampler; $data = array(); for ($i=0; $i < 500; $i++) { $data[] = [$i, mt_rand(0, 200)]; } $sampler = new LargestTriangleThreeBucketsDownSampler(); $sampled = $sampler->sampleDown($data, 100); echo count($sampled); // displays 100
Algorithms provided
- Largest-Triangle-Three-Buckets or LTTB (PHP port of flot-downsample, see: https://github.com/sveinn-steinarsson/flot-downsample)
统计信息
- 总下载量: 45.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-16