newVals[attSoFar + k] = 1;
vals[attSoFar + k] = 1;
  private void convertInstanceNumeric(Instance instance) throws Exception {      double [] newVals = new double [outputFormatPeek().numAttributes()];    int attSoFar = 0;    for(int j = 0; j < getInputFormat().numAttributes(); j++) {      Attribute att = getInputFormat().attribute(j);      if ((!att.isNominal()) || (j == getInputFormat().classIndex())) {	newVals[attSoFar] = instance.value(j);	attSoFar++;      } else {	if (instance.isMissing(j)) {	  for (int k = 0; k < att.numValues() - 1; k++) {            newVals[attSoFar + k] = instance.value(j);	  }	} else {	  int k = 0;	  while ((int)instance.value(j) != m_Indices[j][k]) {            newVals[attSoFar + k] = 1;	    k++;	  }	  while (k < att.numValues() - 1) {            newVals[attSoFar + k] = 0;	    k++;	  }	}	attSoFar += att.numValues() - 1;      }    }    if (instance instanceof SparseInstance) {      push(new SparseInstance(instance.weight(), newVals));    } else {      push(new Instance(instance.weight(), newVals));    }  }