hmmer-3.3/easel/esl_hyperexp.c
/* Function:  esl_hyperexp_FixedUniformMixture()
 *
 * Purpose:   Set the mixture coeffients to a uniform (1/K) distribution,
 *            and fix them there so they aren't estimable parameters.
 */
esl_hyperexp_FixedUniformMixture()
Purpose:   Set the mixture coeffients to a uniform (1/K) distribution,
and fix them there so they aren't estimable parameters.
esl_hyperexp_FixedUniformMixture () Purpose : Set the mixture coeffients to a uniform ( 1 / K ) distribution and fix them there so they aren ' t estimable parameters .
int
esl_hyperexp_FixedUniformMixture(ESL_HYPEREXP *h)
{
  int k;
  for (k = 0; k < h->K; k++) h->q[k] = 1./(double)h->K;
  h->fixmix = TRUE;
  return eslOK;
}
int esl_hyperexp_FixedUniformMixture ( ESL_HYPEREXP * h ) { int k ; for ( k = 0 ; k < h -> K ; k ++ ) h -> q [ k ] = 1. / ( double ) h -> K ; h -> fixmix = TRUE ; return eslOK ; }
Function:  esl_hyperexp_FixedUniformMixture()
 Purpose:   Set the mixture coeffients to a uniform (1/K) distribution,
            and fix them there so they aren't estimable parameters.
Function : esl_hyperexp_FixedUniformMixture () Purpose : Set the mixture coeffients to a uniform ( 1 / K ) distribution and fix them there so they aren ' t estimable parameters .