dist

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Beta beta
View Source
var Cauchy cauchy
View Source
var D d
View Source
var Expon expon
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) 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) 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