biaslab / ForneyLab.jl

Julia package for automatically generating Bayesian inference algorithms through message passing on Forney-style factor graphs.
MIT License
149 stars 33 forks source link

Error: No applicable marginal update rule for GaussianMeanVariance node with inbound types: Message{GaussianWeightedMeanPrecision}, Message{GaussianMeanVariance} #194

Closed HoangMHNguyen closed 2 years ago

HoangMHNguyen commented 2 years ago

The error happens when we compute the Free Energy for the sum-product algorithm in the "kalman_smoother_2d" demo. Possible fix: we replace @RV x[t] ~ GaussianMeanVariance(F*x_t_prev, Q) by @RV x[t] ~ GaussianMeanPrecision(F*x_t_prev, inv(Q))