check for NaN
This commit is contained in:
parent
2eca4ba90c
commit
d2815e4045
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue