if (instances.attribute(attIndex).isNumeric()) {
result = found = 0;
for (int j = 0; j < numInst; j++) {
Instance currInst = instances.instance(instList[j]);
if (!currInst.isMissing(attIndex)) {
found += currInst.weight();
result += currInst.weight() *
currInst.value(attIndex);
}
}
if (Utils.eq(found, 0)) {