@Override public void resetDistribution(Instances data) throws Exception {
  Instances insts=new Instances(data,data.numInstances());
  for (int i=0; i < data.numInstances(); i++) {
    if (whichSubset(data.instance(i)) > -1) {
      insts.add(data.instance(i));
    }
  }
  Distribution newD=new Distribution(insts,this);
  newD.addInstWithUnknown(data,m_attIndex);
  m_distribution=newD;
}

@ Override public void resetDistribution ( Instances data ) throws Exception { Instances insts = new Instances ( data , data . numInstances ( ) ) ; for ( int i = 0 ; i < data . numInstances ( ) ; i ++ ) { if ( whichSubset ( data . instance ( i ) ) > - 1 ) { insts . add ( data . instance ( i ) ) ; } } Distribution newD = new Distribution ( insts , this ) ; newD . addInstWithUnknown ( data , m_attIndex ) ; m_distribution = newD ; }
sets distribution associated with model .
