percentile

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(
	vals DurationSlice,
	p int) (x time.Duration)

Compute the pth percentile of vals.

REQUIRES: vals is sorted. REQUIRES: len(vals) > 0 REQUIRES: 0 <= p <= 100

Types

type DurationSlice

type DurationSlice []time.Duration

An implementation of sort.Interface for durations.

func (DurationSlice) Len

func (p DurationSlice) Len() int

func (DurationSlice) Less

func (p DurationSlice) Less(i, j int) bool

func (DurationSlice) Swap

func (p DurationSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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