import "bitbucket.org/dtolpin/infergo/dist"
Package dist provides differentiatable distribution models. The package is automatically differentiated by deriv during build.
var Beta beta
Beta distribution, singleton instance
var Cauchy cauchy
Cauchy distribution, singleton instance
var D d
D is a singletone variable of type d. General log-likelihood handling functions are dispatched on d.
var Expon expon
Exponential distribution, singleton instance
var Gamma gamma
Gamma distribution, singleton instance
var Normal normal
Normal distribution, singleton instance
Categorical distribution
var Cat Categorical
Categorical distribution, singleton instance; Observe cannot be called on this instance, but Logp and Logps can.
func (dist Categorical) Logp( alpha []float64, y float64, ) float64
Logp computes logpdf of a single observation.
func (dist Categorical) Logps( alpha []float64, y ...float64, ) float64
Logps computes logpdf of a vector of observations.
func (dist Categorical) Observe(x []float64) float64
Observe implements the Model interface
Dirichlet distribution
Dirichlet distribution, singleton instance; Observe cannot be called on this instance, but Logp and Logps can.
Logp computes logpdf of a single observation.
Logps computes logpdf of a vector of observations.
Observe implements the Model interface. The parameters are alpha and observations, flattened.
Path | Synopsis |
---|---|
ad |
Package dist imports 3 packages (graph) and is imported by 1 packages. Updated 2021-01-25. Refresh now. Tools for package owners.