public double[][] confusionMatrix(){
  double[][] newMatrix=new double[m_ConfusionMatrix.length][0];
  for (int i=0; i < m_ConfusionMatrix.length; i++) {
    newMatrix[i]=new double[m_ConfusionMatrix[i].length];
    System.arraycopy(m_ConfusionMatrix[i],0,newMatrix[i],0,m_ConfusionMatrix[i].length);
  }
  return newMatrix;
}

public double [ ] [ ] confusionMatrix ( ) { double [ ] [ ] newMatrix = new double [ m_ConfusionMatrix . length ] [ 0 ] ; for ( int i = 0 ; i < m_ConfusionMatrix . length ; i ++ ) { newMatrix [ i ] = new double [ m_ConfusionMatrix [ i ] . length ] ; System . arraycopy ( m_ConfusionMatrix [ i ] , 0 , newMatrix [ i ] , 0 , m_ConfusionMatrix [ i ] . length ) ; } return newMatrix ; }
returns a copy of the confusion matrix .
