From fdfad8455758b8f4fbba30163d0b5e93dda682e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Caba=C3=B1as?= Date: Mon, 11 Oct 2021 19:09:40 +0200 Subject: [PATCH] #98 changed order at Neighborhood::random --- .../ch/idsia/crema/inference/approxlp1/Neighbourhood.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/idsia/crema/inference/approxlp1/Neighbourhood.java b/src/main/java/ch/idsia/crema/inference/approxlp1/Neighbourhood.java index f476b92b..9a98218e 100644 --- a/src/main/java/ch/idsia/crema/inference/approxlp1/Neighbourhood.java +++ b/src/main/java/ch/idsia/crema/inference/approxlp1/Neighbourhood.java @@ -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; }