Documentation ¶
Overview ¶
Package stream provides a library of data structures/algorithms for calculating online statistics from a stream of data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregateMetric ¶
type AggregateMetric interface { Push(float64) error Values() (map[string]interface{}, error) Clear() }
AggregateMetric is the interface for a metric that tracks multiple univariate single-value metrics simultaneously. Values() returns a map of metrics to their corresponding values at that given time. The keys are the string representations of the metrics (by calling the String() method).
type JointAggregateMetric ¶
type JointAggregateMetric interface { Push(...float64) error Values() (map[string]interface{}, error) Clear() }
JointAggregateMetric is the interface for a metric that tracks multiple multivariate single-value metrics simultaneously. Values() returns a map of metrics to their corresponding values at that given time. The keys are the string representations of the metrics (by calling the String() method).
type JointMetric ¶
JointMetric is the interface for a metric that tracks joint statistics from a stream. There is no Value method for this interface, allowing implementations to roll custom value methods.
type Metric ¶
Metric is the interface for a metric that consumes from a stream. Metric is the standard interface for most metrics; in particular for those that consume single numeric values at a time. There is no Value method for this interface, allowing implementations to roll custom value methods.
type SimpleJointMetric ¶
type SimpleJointMetric interface { JointMetric Value() (float64, error) }
SimpleJointMetric is the interface for a JointMetric that returns a singular value.
type SimpleMetric ¶
SimpleMetric is the interface for a Metric that returns a singular value.
Directories ¶
Path | Synopsis |
---|---|
Package aggregate is a helper library for keeping track of multiple metrics at a time.
|
Package aggregate is a helper library for keeping track of multiple metrics at a time. |
examples
|
|
Package joint provides a library of data structures/algorithms for calculating online joint distribution statistics from a stream of data.
|
Package joint provides a library of data structures/algorithms for calculating online joint distribution statistics from a stream of data. |
Package minmax provides a library of data structures/algorithms for calculating the online minimum or maximum from a stream of data.
|
Package minmax provides a library of data structures/algorithms for calculating the online minimum or maximum from a stream of data. |
Package moment provides a library of data structures/algorithms for calculating online moment-based statistics from a stream of data.
|
Package moment provides a library of data structures/algorithms for calculating online moment-based statistics from a stream of data. |
Package quantile provides a library of data structures/algorithms for calculating online quantiles from a stream of data.
|
Package quantile provides a library of data structures/algorithms for calculating online quantiles from a stream of data. |
heap
Package heap provides the implementation for heaps.
|
Package heap provides the implementation for heaps. |
order
Package order contains the interfaces for various implementations of order statistics-based data structures.
|
Package order contains the interfaces for various implementations of order statistics-based data structures. |
ost
Package ost provides the interfaces for order statistic trees, which are binary trees with the ability to perform log(n) time searches for elements in the tree with a specified rank, as well as log(n) time retrieval for the rank of a specified element in the tree.
|
Package ost provides the interfaces for order statistic trees, which are binary trees with the ability to perform log(n) time searches for elements in the tree with a specified rank, as well as log(n) time retrieval for the rank of a specified element in the tree. |
ost/avl
Package avl provides the implementation for an AVL tree, which satisfies the ost package interfaces, as well as the order package interfaces.
|
Package avl provides the implementation for an AVL tree, which satisfies the ost package interfaces, as well as the order package interfaces. |
ost/rb
Package rb provides the implementation for a red black tree, which satisfies the ost package interfaces, as well as the order package interfaces.
|
Package rb provides the implementation for a red black tree, which satisfies the ost package interfaces, as well as the order package interfaces. |
skiplist
Package skiplist provides the implementation for skiplists.
|
Package skiplist provides the implementation for skiplists. |
Package sample provides a library of data structures/algorithms for sampling from a stream of data.
|
Package sample provides a library of data structures/algorithms for sampling from a stream of data. |
util
|
|
math
Package math is a helper library for mathematical functions.
|
Package math is a helper library for mathematical functions. |
test
Package test is a helper library for implementing tests for the stream package.
|
Package test is a helper library for implementing tests for the stream package. |