Skip to content

Commit

Permalink
fixed dynamic GBP update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcosovic committed May 24, 2022
1 parent 6c8d2e4 commit e20632b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end
gbp.graph.weightDirect[variable] -= gbp.system.jacobianTranspose[variable, factor]^2 / gbp.system.variance[factor]

gbp.graph.meanDirect[variable] += mean * gbp.system.jacobianTranspose[variable, factor] / variance
gbp.graph.weightDirect[variable] += gbp.system.jacobianTranspose[variable, factor]^2 / dvariance
gbp.graph.weightDirect[variable] += gbp.system.jacobianTranspose[variable, factor]^2 / variance
else
k = gbp.graph.dynamic[factor]
@inbounds for i in gbp.graph.rowptr[k]
Expand Down

0 comments on commit e20632b

Please sign in to comment.