Registry / utility / streadway-quantile

streadway-quantile

JSON →
library0.0.0-20220407130108-4246515d968dgogounverified

Package quantile implements a streaming quantile estimator based on Cormode, Korn, Muthukrishnan, Srivastava for space and time efficient online quantile estimation.

go get github.com/streadway/quantile
INSTALL
IMPORT
SIG · STREADWAY-QUANTILE
S
streadway-quantile
utilitygov0.0.0-20220407130108-4246515d968d
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

quantile
github.com/streadway/quantile

Compute the 99th percentile of a data stream

package main import ( "fmt" "github.com/streadway/quantile" ) func main() { q := quantile.New(0.99, 0.001) for i := 0; i < 1000; i++ { q.Insert(float64(i)) } fmt.Println(q.Query(0.99)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220407130108-4246515d968dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
streadway-quantile — go get streadway-quantile · libregistry