@Override public void add(int index,Instance instance){
  Instance newInstance=(Instance)instance.copy();
  newInstance.setDataset(this);
  m_Instances.add(index,newInstance);
}

@ Override public void add ( int index , Instance instance ) { Instance newInstance = ( Instance ) instance . copy ( ) ; newInstance . setDataset ( this ) ; m_Instances . add ( index , newInstance ) ; }
adds one instance at the given position in the list . shallow copies instance before it is added . increases the size of the dataset if it is not large enough . does not check if the instance is compatible with the dataset . note : string or relational values are not transferred .
