Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Histogram ¶
type Histogram struct { Vals []ScalarVal ValMin ScalarVal ValMax ScalarVal NumBuckets int // contains filtered or unexported fields }
Histogram stores all the values, and defines the range and bucket count. Values outside the range end up in underflow/overflow buckets.
func (Histogram) Quantile ¶
Quantile returns a value from the dataset, below which 'ile'% of the values fall
func (Histogram) String ¶
String returns a string representation of the ascii histogram, and the stats
func (*Histogram) UseBlockRunes ¶
func (h *Histogram) UseBlockRunes()
UseBlockRunes will use UTF8 block characters instead of ascii letters in the histogram string
type ScalarVal ¶
type ScalarVal int
ScalarVal is a type wrapper for the kind of numbers we're accummulating into the histogram. (It would be nice to use some kind of 'Number' type, that handles ints & floats.)
Click to show internal directories.
Click to hide internal directories.