目录

MoonQuantileKit

MoonQuantileKit is a zero-dependency MoonBit library for latency percentiles, bounded streaming summaries, histogram buckets, and machine-readable reports.

SampleSummary retains all samples for exact deterministic baselines. BoundedSummary is the streaming alternative: it keeps a configured number of weighted centroids and supports bounded-state merge.

Install

moon add Gym-789/moonquantilekit

Minimal use

import { "Gym-789/moonquantilekit" @quantile }

let config = @quantile.SummaryConfig::new(64, 250)
let summary = @quantile.BoundedSummary::new("checkout", config)
  .add(12)
  .add(35)
  .add(80)
println(summary.p95())

Verify

moon fmt --check
moon info && git diff --exit-code -- '*.mbti'
moon check --target all
moon build --target all
moon test --target all
moon run cmd/main

tolerated_error_bp is a deterministic compression-budget control, not a formal statistical error guarantee. See README.mbt.md and docs/ACCEPTANCE.md for the API boundary.

关于
209.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号