Registry / utility / ericpauley-go-quantize

ericpauley-go-quantize

JSON →
library0.0.0-20200331213906-ae555eb2afa4gogounverified

A Go library for quantizing numerical values into discrete buckets or levels.

go get github.com/ericpauley/go-quantize
INSTALL
IMPORT
SIG · ERICPAULEY-GO-QUAN
E
ericpauley-go-quantize
utilitygov0.0.0-20200331213906-ae555eb2afa4
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.

quantize
github.com/ericpauley/go-quantize

Quantize a float value

package main import ( "fmt" "github.com/ericpauley/go-quantize" ) func main() { q := quantize.New(0.5) result := q.Quantize(1.3) fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200331213906-ae555eb2afa4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ericpauley-go-quantize — go get ericpauley-go-quantize · libregistry