hmmer-3.3/easel/esl_hyperexp.c
/* Function:  esl_hyperexp_Dump()
 *
 * Purpose:   Dump hyperexponential parameters from <hxp> to an open <fp>,
 *            all on one line with no comments.
 *            
 *            The output format is suitable for input by
 *            <esl_hyperexp_Read()>, like <esl_hyperexp_Write()>,
 *            though it's intended as a diagnostic dump of the
 *            contents of the object.
 *
 * Returns:   <eslOK> on success.
 */
esl_hyperexp_Dump()
Purpose:   Dump hyperexponential parameters from  to an open ,
all on one line with no comments.

The output format is suitable for input by
, like ,
though it's intended as a diagnostic dump of the
contents of the object.

 on success.
esl_hyperexp_Dump () Purpose : Dump hyperexponential parameters from to an open all on one line with no comments . The output format is suitable for input by like though it ' s intended as a diagnostic dump of the contents of the object . on success .
int
esl_hyperexp_Dump(FILE *fp, ESL_HYPEREXP *hxp)
{
  int k;
  fprintf(fp, "%2d ", hxp->K);
  fprintf(fp, "%6.2f ", hxp->mu);
  for (k = 0; k < hxp->K; k++)
    fprintf(fp, "%5.3f %9.6f ", hxp->q[k], hxp->lambda[k]);
  fprintf(fp, "\n");
  return eslOK;
}
int esl_hyperexp_Dump ( FILE * fp , ESL_HYPEREXP * hxp ) { int k ; fprintf ( fp , " " , hxp -> K ) ; fprintf ( fp , " " , hxp -> mu ) ; for ( k = 0 ; k < hxp -> K ; k ++ ) fprintf ( fp , " " , hxp -> q [ k ] , hxp -> lambda [ k ] ) ; fprintf ( fp , " \n " ) ; return eslOK ; }
Function:  esl_hyperexp_Dump()
 Purpose:   Dump hyperexponential parameters from <hxp> to an open <fp>,
            all on one line with no comments.
Function : esl_hyperexp_Dump () Purpose : Dump hyperexponential parameters from <hxp > to an open <fp > all on one line with no comments .