util

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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)

type PerfTestSize added in v0.5.3

type PerfTestSize int
const (
	SizeUnknown PerfTestSize = iota
	SizeUnit
	SizeSmall
	SizeLarge
)

func (PerfTestSize) F added in v1.0.0

func (s PerfTestSize) F() []float64

func (PerfTestSize) K added in v1.0.0

func (s PerfTestSize) K() []vector.D

func (PerfTestSize) LeafSize added in v1.0.0

func (s PerfTestSize) LeafSize() []int

func (PerfTestSize) N added in v1.0.0

func (s PerfTestSize) N() []int

func (*PerfTestSize) Set added in v0.5.3

func (s *PerfTestSize) Set(v string) error

func (*PerfTestSize) String added in v0.5.3

func (s *PerfTestSize) String() string

Jump to

Keyboard shortcuts

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