dist

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bernoulli bernoulli
View Source
var Beta beta
View Source
var Binomial binomial
View Source
var Cauchy cauchy
View Source
var D d
View Source
var Exponential, Expon exponential
View Source
var Gamma gamma
View Source
var Normal normal

Functions

This section is empty.

Types

type Categorical added in v0.5.1

type Categorical struct {
	N int
}
var Cat Categorical

func (Categorical) LogZ added in v1.0.7

func (dist Categorical) LogZ(alpha []float64) float64

func (Categorical) Logp added in v0.5.1

func (dist Categorical) Logp(
	alpha []float64, y float64,
) float64

func (Categorical) Logps added in v0.5.1

func (dist Categorical) Logps(
	alpha []float64, y ...float64,
) float64

func (Categorical) Observe added in v0.5.1

func (dist Categorical) Observe(x []float64) float64

type Dirichlet

type Dirichlet struct {
	N int
}
var Dir Dirichlet

func (Dirichlet) LogZ added in v1.0.7

func (dist Dirichlet) LogZ(alpha []float64) float64

func (Dirichlet) Logp

func (dist Dirichlet) Logp(alpha []float64, y []float64) float64

func (Dirichlet) Logps

func (dist Dirichlet) Logps(alpha []float64, y ...[]float64) float64

func (Dirichlet) Observe

func (dist Dirichlet) Observe(x []float64) float64

Jump to

Keyboard shortcuts

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