private void initialize(BayesIm oldBayesIm,int initializationMethod){
  parents=new int[this.nodes.length][];
  parentDims=new int[this.nodes.length][];
  probs=new double[this.nodes.length][][];
  for (int nodeIndex=0; nodeIndex < this.nodes.length; nodeIndex++) {
    initializeNode(nodeIndex,oldBayesIm,initializationMethod);
  }
}

private void initialize ( BayesIm oldBayesIm , int initializationMethod ) { parents = new int [ this . nodes . length ] [ ] ; parentDims = new int [ this . nodes . length ] [ ] ; probs = new double [ this . nodes . length ] [ ] [ ] ; for ( int nodeIndex = 0 ; nodeIndex < this . nodes . length ; nodeIndex ++ ) { initializeNode ( nodeIndex , oldBayesIm , initializationMethod ) ; } }
this method initializes the probability tables for all of the nodes in the bayes net .
