Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func AggCount(v []float64) float64
 - func AggDiff(v []float64) float64
 - func AggFirst(v []float64) float64
 - func AggLast(v []float64) float64
 - func AggMax(v []float64) float64
 - func AggMean(v []float64) float64
 - func AggMeanZero(v []float64) float64
 - func AggMin(v []float64) float64
 - func AggSum(v []float64) float64
 - func AvailableConsolidationFuncs() []string
 - func AvgValue(f64s []float64) float64
 - func CurrentValue(f64s []float64) float64
 - func MaxValue(f64s []float64) float64
 - func MinValue(f64s []float64) float64
 - func Percentile(data []float64, percent float64, interpolate bool) float64
 - func Poly(x float64, coeffs ...float64) float64
 - func SummarizeValues(f string, values []float64) float64
 - func Vandermonde(absent []float64, deg int) *mat.Dense
 - func VarianceValue(f64s []float64) float64
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var AvailableSummarizers = []string{"sum", "total", "avg", "average", "avg_zero", "max", "min", "last", "range", "median", "multiply", "diff", "count", "stddev"}
    
      View Source
      
  var ConsolidationToFunc = map[string]func([]float64) float64{ "average": AggMean, "avg_zero": AggMeanZero, "avg": AggMean, "count": AggCount, "diff": AggDiff, "max": AggMax, "maximum": AggMax, "median": summarizeToAggregate("median"), "min": AggMin, "minimum": AggMin, "multiply": summarizeToAggregate("multiply"), "range": summarizeToAggregate("range"), "sum": AggSum, "stddev": summarizeToAggregate("stddev"), "first": AggFirst, "last": AggLast, }
ConsolidationToFunc contains a map of graphite-compatible consolidation functions definitions to actual functions that can do aggregation TODO(civil): take into account xFilesFactor
Functions ¶
func AggMeanZero ¶
AggMeanZero computes mean (sum(v)/len(v), replacing NaN points with 0
func AvailableConsolidationFuncs ¶
func AvailableConsolidationFuncs() []string
AvailableConsolidationFuncs lists all available consolidation functions
func CurrentValue ¶
CurrentValue returns last non-absent value (if any), otherwise returns NaN
func Percentile ¶
Percentile returns percent-th percentile. Can interpolate if needed
func SummarizeValues ¶
SummarizeValues summarizes values
func Vandermonde ¶
Vandermonde creates a Vandermonde matrix
func VarianceValue ¶
VarianceValue gets variances of list of values
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.