protected void addNumericTrainClass(double classValue,double weight){
  if (classValue > m_MaxTarget) {
    m_MaxTarget=classValue;
  }
  if (classValue < m_MinTarget) {
    m_MinTarget=classValue;
  }
  if (m_TrainClassVals == null) {
    m_TrainClassVals=new double[100];
    m_TrainClassWeights=new double[100];
  }
  if (m_NumTrainClassVals == m_TrainClassVals.length) {
    double[] temp=new double[m_TrainClassVals.length * 2];
    System.arraycopy(m_TrainClassVals,0,temp,0,m_TrainClassVals.length);
    m_TrainClassVals=temp;
    temp=new double[m_TrainClassWeights.length * 2];
    System.arraycopy(m_TrainClassWeights,0,temp,0,m_TrainClassWeights.length);
    m_TrainClassWeights=temp;
  }
  m_TrainClassVals[m_NumTrainClassVals]=classValue;
  m_TrainClassWeights[m_NumTrainClassVals]=weight;
  m_NumTrainClassVals++;
}

protected void addNumericTrainClass ( double classValue , double weight ) { if ( classValue > m_MaxTarget ) { m_MaxTarget = classValue ; } if ( classValue < m_MinTarget ) { m_MinTarget = classValue ; } if ( m_TrainClassVals == null ) { m_TrainClassVals = new double [ 100 ] ; m_TrainClassWeights = new double [ 100 ] ; } if ( m_NumTrainClassVals == m_TrainClassVals . length ) { double [ ] temp = new double [ m_TrainClassVals . length * 2 ] ; System . arraycopy ( m_TrainClassVals , 0 , temp , 0 , m_TrainClassVals . length ) ; m_TrainClassVals = temp ; temp = new double [ m_TrainClassWeights . length * 2 ] ; System . arraycopy ( m_TrainClassWeights , 0 , temp , 0 , m_TrainClassWeights . length ) ; m_TrainClassWeights = temp ; } m_TrainClassVals [ m_NumTrainClassVals ] = classValue ; m_TrainClassWeights [ m_NumTrainClassVals ] = weight ; m_NumTrainClassVals ++ ; }
adds a numeric ( non - missing ) training class value and weight to the buffer of stored values . also updates minimum and maximum target value .
