承接 jbroadway/distinctelements 相关项目开发

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

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

jbroadway/distinctelements

最新稳定版本:1.0

Composer 安装命令:

composer require jbroadway/distinctelements

包简介

A pure PHP implementation of the Distinct Elements in Streams algorithm for estimating the number of distinct elements in a set.

README 文档

README

GitHub Workflow Status (branch) GitHub License Packagist Version Packagist PHP Version Support

A pure PHP implementation of the Distinct Elements in Streams algorithm for estimating the number of distinct elements in a set, from the following paper:

https://arxiv.org/abs/2301.10191

Install using Composer:

composer require jbroadway/distinctelements

Usage:

<?php

require __DIR__ . '/vendor/autoload.php';

$stream = [1, 2, 3, 4, 1, 2, 3, 4, 5, 4, 3, 1, 2];
$epsilon = 0.1;
$delta = 0.1;

$output = DistinctElements::streaming_algorithm ($stream, $epsilon, $delta);
var_dump ($output); // 5

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-22