74-add-jFuzzyLogic #75
@ -116,7 +116,9 @@ public class FuzzyInferenceService {
|
|||||||
if (outputVariable != null) {
|
if (outputVariable != null) {
|
||||||
outputVariable.defuzzify();
|
outputVariable.defuzzify();
|
||||||
}
|
}
|
||||||
return outputVariable == null ? "" : outputVariable.highestMembership(outputVariable.getValue()).getSecond().getName();
|
return (outputVariable == null || Double.isNaN(outputVariable.getValue()))
|
||||||
|
? "Нет рекомендаций"
|
||||||
|
: outputVariable.highestMembership(outputVariable.getValue()).getSecond().getName();
|
||||||
//return outputVariable == null ? "" : outputVariable.fuzzyOutputValue();
|
//return outputVariable == null ? "" : outputVariable.fuzzyOutputValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user