check for NaN
This commit is contained in:
parent
2eca4ba90c
commit
d2815e4045
1 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,10 @@ public class SensitivityWeightedAveragePlugin implements PluginBase, Sensitivity
|
||||||
weightedsum += weight * value;
|
weightedsum += weight * value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (weights == 0) {
|
||||||
|
return new AutosensResult();
|
||||||
|
}
|
||||||
|
|
||||||
Profile profile = MainApp.getConfigBuilder().getProfile();
|
Profile profile = MainApp.getConfigBuilder().getProfile();
|
||||||
|
|
||||||
double sens = profile.getIsf();
|
double sens = profile.getIsf();
|
||||||
|
|
Loading…
Reference in a new issue