qsort

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-2.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

Partition an array of float32 with the middle pivot element, and return the pivot index.

Values less than the pivot are moved left of the pivot, those greater are moved right.

func QSelectFirstQuartileFloat32

func QSelectFirstQuartileFloat32(a []float32) float32

Selects the first quartile of an array of float32 and partially reorders the array.

func QSelectFloat32

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

Select kth lowest element from an array of float32. Partially reorders the array.

func QSelectMedianFloat32

func QSelectMedianFloat32(a []float32) float32

Selects the median of an array of float32 and partially reorders the array.

func QSortFloat32

func QSortFloat32(a []float32)

Quick sort an array of float32 in ascending order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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