Documentation ¶
Index ¶
- func AvgCall(arrays ...*collections.FloatArray) *collections.FloatArray
- func FuncCall(funcType FuncType, params ...*collections.FloatArray) *collections.FloatArray
- func IsSupportOrderBy(t FuncType) bool
- func QuantileCall(q float64, histogramFields map[float64][]*collections.FloatArray) (*collections.FloatArray, error)
- func RateCall(interval int64, params ...*collections.FloatArray) *collections.FloatArray
- type FuncType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvgCall ¶
func AvgCall(arrays ...*collections.FloatArray) *collections.FloatArray
func FuncCall ¶
func FuncCall(funcType FuncType, params ...*collections.FloatArray) *collections.FloatArray
FuncCall calls the function calc by function type and params
func IsSupportOrderBy ¶
IsSupportOrderBy checks if function support order by.
func QuantileCall ¶
func QuantileCall(q float64, histogramFields map[float64][]*collections.FloatArray) (*collections.FloatArray, error)
QuantileCall references to prometheus implementation. https://github.com/prometheus/prometheus/blob/39d79c3cfb86c47d6bc06a9e9317af582f1833bb/promql/quantile.go 0 <= q <= 1 q = 0, returns 0 q = 1, last UpperBound before Inf is returned
func RateCall ¶
func RateCall(interval int64, params ...*collections.FloatArray) *collections.FloatArray
RateCall represents rate function call.
Types ¶
Click to show internal directories.
Click to hide internal directories.