Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PercentilesFloat64Reverse ¶
PercentilesFloat64Reverse calculates the percentile of a slice of floats in reverse order. NOTE: The unit of each value of xs is 'bits' and the result is 'Mb'.
func RandomizedGroups ¶
RandomizedGroups groups the given collection randomly into groups of size n
Types ¶
type ReverseFloat64Slice ¶
type ReverseFloat64Slice []float64
ReverseFloat64Slice is a type that implements the sort.Interface interface so that we can sort a slice of float64 in reverse order
func (ReverseFloat64Slice) Len ¶
func (r ReverseFloat64Slice) Len() int
Len returns the length of the slice
func (ReverseFloat64Slice) Less ¶
func (r ReverseFloat64Slice) Less(i, j int) bool
Less returns true if the element at index i is greater than the element at index j
func (ReverseFloat64Slice) Swap ¶
func (r ReverseFloat64Slice) Swap(i, j int)
Swap swaps the elements at indexes i and j