Versions in this module Expand all Collapse all v0 v0.0.1 Oct 30, 2019 Changes in this version + const ErrWeightLessThanZero + type Centroid struct + Mean float64 + Weight float64 + func (c *Centroid) Add(r Centroid) error + func (c *Centroid) String() string + type CentroidList []Centroid + func NewCentroidList(centroids []Centroid) CentroidList + func (l *CentroidList) Clear() + func (l CentroidList) Len() int + func (l CentroidList) Less(i, j int) bool + func (l CentroidList) Swap(i, j int) + type Error string + func (e Error) Error() string + type TDigest struct + Compression float64 + func New() *TDigest + func NewWithCompression(c float64) *TDigest + func (t *TDigest) Add(x, w float64) + func (t *TDigest) AddCentroid(c Centroid) + func (t *TDigest) AddCentroidList(c CentroidList) + func (t *TDigest) CDF(x float64) float64 + func (t *TDigest) Centroids() CentroidList + func (t *TDigest) Count() float64 + func (t *TDigest) Quantile(q float64) float64 + func (t *TDigest) Reset()