Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardlavender committed Oct 23, 2024
1 parent 6e08e4b commit 7b328b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Julia/src/model-move.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Patter.simulate_step(state::StateXYD, model_move::ModelMoveXYD, t::Int6
end

function Patter.logpdf_step(state_from::StateXYD, state_to::StateXYD, model_move::ModelMoveXYD, t::Int64, length::Float64, angle::Float64)
angle_delta = abs_angle_difference(angle, state_from.angle)
angle_delta = Patter.abs_angle_difference(angle, state_from.angle)
logpdf(model_move.dbn_length, length) + logpdf(model_move.dbn_angle_delta, angle_delta)
end

Expand Down

0 comments on commit 7b328b1

Please sign in to comment.