Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Centroid ¶
Centroid summarizes Count samples around Mean
type MergingDigest ¶
type MergingDigest struct { MaxUnmerged int // contains filtered or unexported fields }
MergingDigest amortizes computation by merging in fixed sized batches
func New ¶
func New(compression float64) *MergingDigest
New creates a new MergingDigest with the given compression
func (*MergingDigest) Add ¶
func (digest *MergingDigest) Add(x float64, w int64)
Add adds a sample x with weight w
func (*MergingDigest) Compress ¶
func (digest *MergingDigest) Compress()
Compress merges any unmerged data into the summary
func (*MergingDigest) Merge ¶
func (digest *MergingDigest) Merge(c Centroid)
Merge merges a centroid into the digest
func (*MergingDigest) Quantile ¶
func (digest *MergingDigest) Quantile(q float64) float64
Quantile returns an estimate of the value at quantile q
func (*MergingDigest) Summary ¶
func (digest *MergingDigest) Summary() []Centroid
Summary returns compressed summary of the digest
Click to show internal directories.
Click to hide internal directories.