Skip to content

Commit

Permalink
#98 changed order at Neighborhood::random
Browse files Browse the repository at this point in the history
  • Loading branch information
rcabanasdepaz committed Oct 11, 2021
1 parent af13114 commit fdfad84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public Solution move(Solution from, Move doing) {
private BayesianFactor random(GenericFactor factor) {
if (factor instanceof ExtensiveLinearFactor) {
return new ExtensiveLinearToRandomBayesian().apply((ExtensiveLinearFactor<?>) factor);
} else if (factor instanceof SeparateHalfspaceFactor) {
return new HalfspaceToRandomBayesianFactor().apply((SeparateHalfspaceFactor) factor);
} else if (factor instanceof SeparateLinearFactor) {
return new SeparateLinearToRandomBayesian().apply((SeparateLinearFactor<?>) factor);
} else if (factor instanceof SeparateHalfspaceFactor) {
return new HalfspaceToRandomBayesianFactor().apply((SeparateHalfspaceFactor) factor);
} else if (factor instanceof BayesianFactor) {
return (BayesianFactor) factor;
}
Expand Down

0 comments on commit fdfad84

Please sign in to comment.