probabilities

package
v0.0.0-...-61d1131 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HaltonSampler

type HaltonSampler struct {
	// contains filtered or unexported fields
}

func NewHaltonSampler

func NewHaltonSampler(numIterations, numVariables int) *HaltonSampler

func (*HaltonSampler) Sample

func (s *HaltonSampler) Sample() []float64

type PseudorandomSampler

type PseudorandomSampler struct {
	// contains filtered or unexported fields
}

func NewPseudorandomSampler

func NewPseudorandomSampler(numVariables int) *PseudorandomSampler

func (*PseudorandomSampler) Sample

func (s *PseudorandomSampler) Sample() []float64

Sample samples an array of probabilities.

type Sampler

type Sampler interface {
	Sample() []float64
}

Jump to

Keyboard shortcuts

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