qsort

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QPartitionFloat32

func QPartitionFloat32(a []float32) int

Partitions an array of float32 with the middle pivot element, and returns the pivot index. Values less than the pivot are moved left of the pivot, those greater are moved right. Array must not contain IEEE NaN

func QSelectFirstQuartileFloat32

func QSelectFirstQuartileFloat32(a []float32) float32

Select first quartile of an array of float32. Partially reorders the array. Array must not contain IEEE NaN

func QSelectFloat32

func QSelectFloat32(a []float32, k int) float32

Select kth lowest element from an array of float32. Partially reorders the array. Array must not contain IEEE NaN

func QSelectMedianFloat32

func QSelectMedianFloat32(a []float32) float32

Select median of an array of float32. Partially reorders the array. Array must not contain IEEE NaN

func QSortFloat32

func QSortFloat32(a []float32)

Sort an array of float32 in ascending order. Array must not contain IEEE NaN

Types

This section is empty.

Jump to

Keyboard shortcuts

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