check for NaN

This commit is contained in:
Milos Kozak 2017-09-18 21:52:06 +02:00
parent 2eca4ba90c
commit d2815e4045

View file

@ -172,6 +172,10 @@ public class SensitivityWeightedAveragePlugin implements PluginBase, Sensitivity
weightedsum += weight * value;
}
if (weights == 0) {
return new AutosensResult();
}
Profile profile = MainApp.getConfigBuilder().getProfile();
double sens = profile.getIsf();