Documentation
¶
Index ¶
- type DDLog
- type Exact
- type ExtremesBias
- type HighBias
- type Invariant
- type InvariantFunc
- type KLL
- type LowBias
- type TDMulti
- type TDigest
- func (s *TDigest) AdjustWeights(multiply float32)
- func (s *TDigest) Insert(v float64)
- func (s *TDigest) InsertWeighted(v float64, w float32)
- func (s *TDigest) Merge(s1 *TDigest)
- func (s *TDigest) MergeWeighted(s1 *TDigest, w0, w1 float32)
- func (s *TDigest) Query(q float64) float64
- func (s *TDigest) QueryMulti(qs, res []float64)
- func (s *TDigest) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DDLog ¶
type DDLog struct {
// contains filtered or unexported fields
}
func (*DDLog) InsertWeight ¶
type ExtremesBias ¶
type ExtremesBias float32
func (ExtremesBias) Inv ¶
func (eps ExtremesBias) Inv(q float32) float32
type InvariantFunc ¶
func (InvariantFunc) Inv ¶
func (f InvariantFunc) Inv(q float32) float32
type KLL ¶
type KLL struct {
// contains filtered or unexported fields
}
KLL is kll-like streaming quantile algorithm.
type TDigest ¶
type TDigest struct {
Invariant Invariant
Decay float32
ElementsReduced float32
Compressions int
BruteCompressions int
// contains filtered or unexported fields
}
func NewTDExtremesBiased ¶
func NewTDHighBiased ¶
func NewTDLowBiased ¶
func (*TDigest) AdjustWeights ¶
func (*TDigest) InsertWeighted ¶
func (*TDigest) MergeWeighted ¶
func (*TDigest) QueryMulti ¶
QueryMulti make multiple queries at once. qs is a list of queries (quantiles). res is a buffer for results, res[i] = Query(qs[i]).
Click to show internal directories.
Click to hide internal directories.