You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In simulate.jl, a random state is sampled from the Gaussian Belief:
# make initial state
s0 = rand(rng, b0)
However, the rng passed into the rand() function isn't actually used to seed experiments; in kf_classes.jl, the rand() function is defined as
function Base.rand(rng::AbstractRNG, b::GaussianBelief)
return b.μ + cholesky(b.Σ).L * randn(size(b.Σ,1))
end
Should there be two extensions of rand() - one that dispatches on the rng for simulation reproducibility and one that does not? For example,
function Base.rand(rng::AbstractRNG, b::GaussianBelief)
return b.μ + cholesky(b.Σ).L * randn(rng, size(b.Σ,1))
end
function Base.rand(b::GaussianBelief)
return b.μ + cholesky(b.Σ).L * randn(size(b.Σ,1))
end
The text was updated successfully, but these errors were encountered:
In simulate.jl, a random state is sampled from the Gaussian Belief:
However, the rng passed into the
rand()
function isn't actually used to seed experiments; in kf_classes.jl, therand()
function is defined asShould there be two extensions of
rand()
- one that dispatches on the rng for simulation reproducibility and one that does not? For example,The text was updated successfully, but these errors were encountered: