Documentation
¶
Index ¶
- type AVLNode
- type AggregationAlgo
- func NewOrderedStatsTreeSW[V cmp.Ordered]() AggregationAlgo[V, V]
- func NewRecalculate[V any, AGG any](aggFunc func(AGG, V) AGG, initAgg AGG) AggregationAlgo[V, AGG]
- func NewSubOnEvict[V any, AGG any](aggFunc func(AGG, V) AGG, subFunc func(AGG, V) AGG, initAgg AGG) AggregationAlgo[V, AGG]
- func NewTwoStack[V any, AGG any](aggFunc func(AGG, V) AGG, combineFunc func(AGG, AGG) AGG, initAgg AGG) AggregationAlgo[V, AGG]
- type OrderedStatsTreeSW
- type Recalculate
- type StackEntry
- type SubOnEvict
- type TwoStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationAlgo ¶
func NewOrderedStatsTreeSW ¶
func NewOrderedStatsTreeSW[V cmp.Ordered]() AggregationAlgo[V, V]
func NewRecalculate ¶
func NewRecalculate[V any, AGG any](aggFunc func(AGG, V) AGG, initAgg AGG) AggregationAlgo[V, AGG]
func NewSubOnEvict ¶
func NewSubOnEvict[V any, AGG any]( aggFunc func(AGG, V) AGG, subFunc func(AGG, V) AGG, initAgg AGG, ) AggregationAlgo[V, AGG]
func NewTwoStack ¶
func NewTwoStack[V any, AGG any]( aggFunc func(AGG, V) AGG, combineFunc func(AGG, AGG) AGG, initAgg AGG, ) AggregationAlgo[V, AGG]
type OrderedStatsTreeSW ¶
Sliding window using ordered statistical tree
func (*OrderedStatsTreeSW[V]) Evict ¶
func (o *OrderedStatsTreeSW[V]) Evict()
func (*OrderedStatsTreeSW[V]) Insert ¶
func (o *OrderedStatsTreeSW[V]) Insert(val V)
func (*OrderedStatsTreeSW[V]) Query ¶
func (o *OrderedStatsTreeSW[V]) Query() V
Query the median value
type Recalculate ¶
func (*Recalculate[V, AGG]) Evict ¶
func (r *Recalculate[V, AGG]) Evict()
func (*Recalculate[V, AGG]) Insert ¶
func (r *Recalculate[V, AGG]) Insert(val V)
func (*Recalculate[V, AGG]) Query ¶
func (r *Recalculate[V, AGG]) Query() AGG
type StackEntry ¶
type SubOnEvict ¶
func (*SubOnEvict[V, AGG]) Evict ¶
func (s *SubOnEvict[V, AGG]) Evict()
func (*SubOnEvict[V, AGG]) Insert ¶
func (s *SubOnEvict[V, AGG]) Insert(val V)
func (*SubOnEvict[V, AGG]) Query ¶
func (s *SubOnEvict[V, AGG]) Query() AGG
Click to show internal directories.
Click to hide internal directories.