public double localScore(int i,int[] parents){
  double sum=0.0;
  for (  BDeuScore score : scores) {
    sum+=score.localScore(i,parents);
  }
  return sum / scores.size();
}

public double localScore ( int i , int [ ] parents ) { double sum = 0.0 ; for ( BDeuScore score : scores ) { sum += score . localScore ( i , parents ) ; } return sum / scores . size ( ) ; }
calculates the sample likelihood and bic score for i given its parents in a simple sem model
