def _build_obs_freq_mat(acc_rep_mat):
 total = float(sum(acc_rep_mat.values()))
 obs_freq_mat = ObservedFrequencyMatrix(alphabet=acc_rep_mat.alphabet, build_later=1)
 for i in acc_rep_mat:
  obs_freq_mat[i] = (acc_rep_mat[i] / total)
 return obs_freq_mat

def _build_obs_freq_mat ( acc_rep_mat ) : total = float ( sum ( acc_rep_mat . values ( ) ) ) obs_freq_mat = ObservedFrequencyMatrix ( alphabet = acc_rep_mat . alphabet , build_later = 1 ) for i in acc_rep_mat : obs_freq_mat [ i ] = ( acc_rep_mat [ i ] / total ) return obs_freq_mat
build_obs_freq_mat: build the observed frequency matrix .