filtron / MarkovKernels.jl

Marginal distributions and Markov kernels that play nice with each other for the purpose of Bayesian state estimation.
MIT License
17 stars 2 forks source link

Demo not working. #57

Closed zgbkdlm closed 1 year ago

zgbkdlm commented 1 year ago

https://github.com/filtron/MarkovKernels.jl/blob/main/demo/sample_trajectory.jl:

Lines 13 and 17, I is not defined.

Line 20, sample not defined.

filtron commented 1 year ago

Yeah the /demo is mostly to develop demonstrations in the documentation. That is the following code example should work: https://filtron.github.io/MarkovKernels.jl/stable/tutorial_pomp_sampling/

If you really want to run the demo files, then I would recommend include("sampling_demo.jl") is what you want, this file calls include on sampling_implementation.jl and sample_trajectory.jl, the former defines the function sample. Additionally, you would have to add using LinearAlgebra e.g. in sampling_demo.jl.

Apparently I dont notice this error because I have using LinearAlgebra in my startup file. Sorry for this.