@Override protected Instance process(Instance instance) throws Exception {
  Instance result;
  double[] values;
  int i;
  values=new double[m_Indices.length];
  for (i=0; i < m_Indices.length; i++) {
    values[i]=instance.value(m_Indices[i]);
  }
  result=new DenseInstance(instance.weight(),values);
  result.setDataset(getOutputFormat());
  copyValues(result,false,instance.dataset(),getOutputFormat());
  result.setDataset(getOutputFormat());
  return result;
}

@ Override protected Instance process ( Instance instance ) throws Exception { Instance result ; double [ ] values ; int i ; values = new double [ m_Indices . length ] ; for ( i = 0 ; i < m_Indices . length ; i ++ ) { values [ i ] = instance . value ( m_Indices [ i ] ) ; } result = new DenseInstance ( instance . weight ( ) , values ) ; result . setDataset ( getOutputFormat ( ) ) ; copyValues ( result , false , instance . dataset ( ) , getOutputFormat ( ) ) ; result . setDataset ( getOutputFormat ( ) ) ; return result ; }
processes the given instance ( may change the provided instance ) and returns the modified version .
