* @param attrInfos
* attribute information required for setting the value
*/
static void setMissingAttribute(Instance instance,
Pair<AttrInfo, Integer> attrInfos) {
AttrInfo info = attrInfos.getFirstValue();
int attribIndex = attrInfos.getSecondValue();
AttrValue val = new AttrValue();
if (info instanceof NominalAttrInfo) {
info.set_nominal_string(val, MISSING_NOM_VAL, true);
} else if (info instanceof RealAttrInfo) {
info.set_real_val(val, MISSING_NUM_VAL);
}
instance.values[attribIndex] = val;
}