int c_xj = idPWM.getMatrix()[i][j]; // count of residue at position j
double p_xj = ((double) bGPWM.getMatrix()[i][j])/((double) bGPWM.getColumnSum(j));
double bin_prob = 0.00;
for(int trial = c_xj; trial <= m; trial++){
BinomialDistribution bnDistr = new BinomialDistribution(trial,p_xj);
bin_prob = bin_prob + bnDistr.probability(trial);
//int printbin = (m - c_xj)/20;
if(trial%10==0){
System.out.println("\t\t\tBinomial probability of "+ aminoA_symbols[i] + ", " +
relative_positions[j] + " at iteration " + trial + " of " + m + " is " +
bin_prob);