Hi all,
For the following inference:
var posterior = Infer({
method: "enumerate", model: function(){
var x = gaussian({mu: 0, sigma: 1})
return x
}})
I get this error message:
Gaussian({ mu: 0, sigma: 1 })Enumerate can only be used with distributions that have finite support.
Which is telling me I cannot use a continuous distribution with enumerate.
However, when I simulate a continuous distribution using Math.rand(), there is no error message:
var posterior = Infer({
method: "enumerate", model: function(){
var x = Math.random()
return x
}})
Should there be an error or warning message?