sortby

package
v0.0.0-...-8f151e4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: BSD-3-Clause Imports: 0 Imported by: 4

Documentation

Overview

Package sortby is a hybrid, non stable sort based on go's standard sort but with all less function and many swaps inlined to sort a list of ints by an acompanying list of floats as needed in random forest training. It is about 30-40% faster then the standard sort.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortBy

func SortBy(cases *[]int, vals *[]float64)

SortBy will sort the values in cases and vals by the values in vals in increasing order. If vals is longer then cases only the coresponding section will be sorted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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