Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatSlice ¶
type FloatSlice []float32
FloatSlice attaches the methods of sort.Interface to []float32, sorting in increasing order (not-a-number values are treated as less than other values).
func (FloatSlice) Len ¶
func (p FloatSlice) Len() int
func (FloatSlice) Less ¶
func (p FloatSlice) Less(i, j int) bool
func (FloatSlice) Swap ¶
func (p FloatSlice) Swap(i, j int)
type Slice ¶
Slice is an extension of sort.Interface which keeps track of the original indices of the elements of a slice after sorting.
func NewFloatSlice ¶
NewFloatSlice returns a new Slice for the given sequence of float32 values.
func NewIntSlice ¶
NewIntSlice returns a new Slice for the given sequence of int values.
func NewStringSlice ¶
NewStringSlice returns a new Slice for the given sequence of string values.
Click to show internal directories.
Click to hide internal directories.