dist

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 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) 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

Source Files

Jump to

Keyboard shortcuts

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