Documentation
¶
Index ¶
- func Diff(numbers []float64, numbersOther []float64) []float64
- func DiffRelative(original []float64, derived []float64) []float64
- func Downsample(values []float64, step int, q []float64) []float64
- func Mean(numbers []float64) float64
- func Median(numbers []float64) float64
- func Mode(numbers []float64) (modes []float64)
- func PlotDatasets(ds []*Dataset, fname string, batchSize int) error
- func QSortFloat(a []float64) []float64
- func Quantile(numbers []float64, n float64) (float64, int64)
- func Quantiles(numbers []float64, n []float64) []float64
- func Round(n float64) int64
- func StdDev(numbers []float64, mean float64) float64
- func Sum(numbers []float64) (total float64)
- type Dataset
- func (fd *Dataset) IntValue(idx int, scaleToInt float64) int64
- func (e *Dataset) LowerBound() float64
- func (e *Dataset) Max() float64
- func (e *Dataset) MaxInt(scaleToInt float64) int64
- func (e *Dataset) Mean() float64
- func (e *Dataset) MeanInt(scaleToInt float64) int64
- func (e *Dataset) Min() float64
- func (e *Dataset) MinInt(scaleToInt float64) int64
- func (e *Dataset) Sort()
- func (e *Dataset) UpperBound() float64
- func (fd *Dataset) UsedMem() int64
- type Histogram
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffRelative ¶
func Downsample ¶
process in ranges, returning quantiles for every range.
func QSortFloat ¶
Go uses interfaces for sorting, that is quite slow.
func Round ¶
Go doesn't have Round function :( https://github.com/golang/go/issues/4594
Types ¶
type Dataset ¶
type Dataset struct {
// contains filtered or unexported fields
}
func NewLatencyDataset ¶
func NewLatencyDatasets ¶
func (*Dataset) LowerBound ¶
func (*Dataset) UpperBound ¶
type Histogram ¶
type Histogram interface {
Name() string
// Calculate quantiles
Quantiles(qin []float64) ([]float64, error)
ValueAtQuantile(qin float64) int64
SignificantFigures() int64
UsedMem() int64
Reset()
RecordValues(datasets []*Dataset, start, stop int) error
}
func NewCircosusHist ¶
func NewHdrHist ¶
func NewPreceiseHist ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package circllhist provides an implementation of Circonus' fixed log-linear histogram data structure.
|
Package circllhist provides an implementation of Circonus' fixed log-linear histogram data structure. |
|
cmd
|
|
|
histo
command
|
|
|
gnuplot is a simple minded set of functions to manage a gnuplot subprocess in order to plot data.
|
gnuplot is a simple minded set of functions to manage a gnuplot subprocess in order to plot data. |
Click to show internal directories.
Click to hide internal directories.