Back to

Package random

Latest Go to latest

The highest tagged major version is .

Published: today | License: MIT | Module:


func ArgMaxMultinomial

func ArgMaxMultinomial(pvals []float64) (int, error)

ArgMaxMultinomial returns the index sampled by multinomial distribution with given probabilities.

func Multinomial

func Multinomial(n int, pvals []float64, size int) [][]int

Multinomial draw samples from a multinomial distribution like numpy.random.multinomial. See

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier