Documentation
¶
Index ¶
- func KahanSumInc(inc, sum, c float64) (newSum, newC float64)
- func Quantile(q float64, points []float64) float64
- type Accumulator
- type AvgAcc
- type CountAcc
- type GroupAcc
- type HistogramAvgAcc
- type MaxAcc
- type MinAcc
- type QuantileAcc
- type StdDevAcc
- type StdVarAcc
- type SumAcc
- type ValueType
- type VectorAccumulator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KahanSumInc ¶
KahanSumInc implements kahan summation, see https://en.wikipedia.org/wiki/Kahan_summation_algorithm.
Types ¶
type Accumulator ¶
type Accumulator interface {
Add(v float64, h *histogram.FloatHistogram) error
Value() (float64, *histogram.FloatHistogram)
ValueType() ValueType
Reset(float64)
}
func NewQuantileAcc ¶
func NewQuantileAcc() Accumulator
type AvgAcc ¶
type AvgAcc struct {
// contains filtered or unexported fields
}
type CountAcc ¶
type CountAcc struct {
// contains filtered or unexported fields
}
func NewCountAcc ¶
func NewCountAcc() *CountAcc
type GroupAcc ¶
type GroupAcc struct {
// contains filtered or unexported fields
}
func NewGroupAcc ¶
func NewGroupAcc() *GroupAcc
type HistogramAvgAcc ¶
type HistogramAvgAcc struct {
// contains filtered or unexported fields
}
func NewHistogramAvgAcc ¶
func NewHistogramAvgAcc() *HistogramAvgAcc
func (*HistogramAvgAcc) Add ¶
func (acc *HistogramAvgAcc) Add(v float64, h *histogram.FloatHistogram) error
func (*HistogramAvgAcc) Reset ¶
func (acc *HistogramAvgAcc) Reset(f float64)
func (*HistogramAvgAcc) Value ¶
func (acc *HistogramAvgAcc) Value() (float64, *histogram.FloatHistogram)
func (*HistogramAvgAcc) ValueType ¶
func (acc *HistogramAvgAcc) ValueType() ValueType
type MaxAcc ¶
type MaxAcc struct {
// contains filtered or unexported fields
}
type MinAcc ¶
type MinAcc struct {
// contains filtered or unexported fields
}
type QuantileAcc ¶
type QuantileAcc struct {
// contains filtered or unexported fields
}
func (*QuantileAcc) Add ¶
func (q *QuantileAcc) Add(v float64, h *histogram.FloatHistogram) error
func (*QuantileAcc) Reset ¶
func (q *QuantileAcc) Reset(f float64)
func (*QuantileAcc) Value ¶
func (q *QuantileAcc) Value() (float64, *histogram.FloatHistogram)
func (*QuantileAcc) ValueType ¶
func (q *QuantileAcc) ValueType() ValueType
type StdDevAcc ¶
type StdDevAcc struct {
// contains filtered or unexported fields
}
func NewStdDevAcc ¶
func NewStdDevAcc() *StdDevAcc
type StdVarAcc ¶
type StdVarAcc struct {
// contains filtered or unexported fields
}
func NewStdVarAcc ¶
func NewStdVarAcc() *StdVarAcc
type SumAcc ¶
type SumAcc struct {
// contains filtered or unexported fields
}
type VectorAccumulator ¶
type VectorAccumulator interface {
AddVector(vs []float64, hs []*histogram.FloatHistogram) error
Value() (float64, *histogram.FloatHistogram)
ValueType() ValueType
Reset(float64)
}
Click to show internal directories.
Click to hide internal directories.