src/meme_4.6.0/src/glam2_glam2.c
/* log probability of counts given probabilities */
log probability of counts given probabilities
log probability of counts given probabilities
double prob_vec_score(const prob_vec *p, const int *counts) {
  int i;
  double score = 0;
  for (i = 0; i < p->dim; ++i)
    score += counts[i] * p->log_probs[i];
  return score;
}
double prob_vec_score ( const prob_vec * p , const int * counts ) { int i ; double score = 0 ; for ( i = 0 ; i < p -> dim ; ++ i ) score += counts [ i ] * p -> log_probs [ i ] ; return score ; }
log probability of counts given probabilities
log probability of counts given probabilities