double [] newVals = new double[outputFormatPeek().numAttributes()];
double [] vals = new double[getOutputFormat().numAttributes()];
  public boolean input(Instance instance) throws Exception {    if (getInputFormat() == null) {      throw new Exception("No input instance format defined");    }    if (m_NewBatch) {      resetQueue();      m_NewBatch = false;    }    double [] newVals = new double[outputFormatPeek().numAttributes()];    for (int i = 0; i < m_SelectedAttributes.length; i++) {      int current = m_SelectedAttributes[i];      newVals[i] = instance.value(current);    }    if (instance instanceof SparseInstance) {      push(new SparseInstance(instance.weight(), newVals));    } else {      push(new Instance(instance.weight(), newVals));    }    return true;  }