window

package
v0.0.0-...-4250c9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateChangeIndicator

func CalculateChangeIndicator(data []int, latest int) string

CalculateChangeIndicator determines if a Change Indicator should be generated from a window of recent latencies.

For each 10x over the mean the latest item is, we add a single plus sign up to 3.

For each 10x under the mean the latest item is, we add a single minus sign up to 3.

Otherwise we return no change indicator.

func Mean

func Mean(data []int) int

Mean returns the mean of a slice of int64.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL