public MemoryExampleTable(List<Attribute> attributes,DataRowFactory factory,int size){
  this(attributes);
  dataList=new ArrayList<DataRow>(size);
  for (int i=0; i < size; i++) {
    DataRow dataRow=factory.create(attributes.size());
    for (    Attribute attribute : attributes) {
      dataRow.set(attribute,Double.NaN);
    }
    dataList.add(dataRow);
  }
}

public MemoryExampleTable ( List < Attribute > attributes , DataRowFactory factory , int size ) { this ( attributes ) ; dataList = new ArrayList < DataRow > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { DataRow dataRow = factory . create ( attributes . size ( ) ) ; for ( Attribute attribute : attributes ) { dataRow . set ( attribute , Double . NaN ) ; } dataList . add ( dataRow ) ; } }
creates a new instance of memoryexampletable .
