Skip to content

Commit

Permalink
Fix for the only edges having negative probabilities resulting in zer…
Browse files Browse the repository at this point in the history
…o as the max value
  • Loading branch information
lkarlslund committed Aug 26, 2022
1 parent 9ca2a86 commit 4c82445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/engine/edge.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (m EdgeBitmap) IsSet(method Edge) bool {
}

func (m EdgeBitmap) MaxProbability(source, target *Object) Probability {
var max Probability
max := MINPROBABILITY
for i := 0; i < len(edgeInfos); i++ {
if m.IsSet(Edge(i)) {
prob := Edge(i).Probability(source, target)
Expand Down

0 comments on commit 4c82445

Please sign in to comment.