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