util

package
v0.0.0-...-5408671 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KRange    = []vector.D{2, 32, 256}
	NRange    = []int{1e3, 1e4, 1e5, 1e6}
	SizeRange = []int{1, 16, 128, 512}
)

Functions

func Generate

func Generate(n int, k vector.D) []*mock.P

func RH

func RH(k vector.D, f float64) hyperrectangle.R

func RV

func RV(k vector.D, min float64, max float64) vector.V

func Transformer

func Transformer(p vector.V) cmp.Option

Transformer sorts a list of points.

func TrivialFilter

func TrivialFilter(p *mock.P) bool

Types

type L

type L[T point.P] struct {
	Data []T
	P    vector.V
}

func (L[T]) Len

func (l L[T]) Len() int

func (L[T]) Less

func (l L[T]) Less(i, j int) bool

func (L[T]) Swap

func (l L[T]) Swap(i, j int)

Jump to

Keyboard shortcuts

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