Versions in this module Expand all Collapse all v1 v1.0.0 Feb 15, 2022 v0 v0.1.0 Jan 26, 2022 Changes in this version + func Fprint(w io.Writer, h Histogram, s ScaleFunc) error + func Fprintf(w io.Writer, h Histogram, s ScaleFunc, f FormatFunc) error + type Bucket struct + Count int + Max float64 + Min float64 + type FormatFunc func(v float64) string + type Histogram struct + Buckets []Bucket + Count int + Max int + Min int + func Hist(bins int, input []float64) (Histogram, error) + func HistByCustomRange(min, max, interval float64, input []float64) (Histogram, error) + func PowerHist(power float64, input []float64) Histogram + func (h Histogram) Scale(s ScaleFunc, idx int) float64 + type ScaleFunc func(min, max, value int) float64 + func Linear(width int) ScaleFunc