dist

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution

type Distribution struct {
	Threshes []float64
}

func NewDistribution

func NewDistribution(weights []float64) *Distribution

func (*Distribution) Generate

func (d *Distribution) Generate(points int) []int

func (*Distribution) Next

func (d *Distribution) Next() int

func (*Distribution) SortedIndices

func (d *Distribution) SortedIndices() []int

Lowest weights come first.

func (*Distribution) Validate

func (d *Distribution) Validate() error

func (*Distribution) Weights

func (d *Distribution) Weights() []float64

Jump to

Keyboard shortcuts

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