This file is indexed.

/usr/include/biosquid/dirichlet.h is in biosquid-dev 1.9g+cvs20050121-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* dirichlet.h
 * 
 * Dirichlets, mixture Dirichlets, gamma functions, and beta functions;
 * evaluation and sampling routines.
 * 
 * SRE, Sat Oct 25 09:47:09 2003
 * CVS $Id: dirichlet.h,v 1.1 2003/10/27 21:08:13 eddy Exp $
 */
#ifndef DIRICHLETH_INCLUDED
#define DIRICHLETH_INCLUDED

typedef struct mixdchlet_s {
  double  *q;			/* mixture coefficients q[0..N-1]           */
  double **alpha;               /* Dirichlet params alpha[0..N-1][0..K-1]   */
  int      N;			/* number of mixtures, e.g. 9 for Sjolander */
  int      K;			/* alphabet size, e.g. 20                   */
  char    *alphabet;		/* alphabet, e.g. "ACDEFGHIKLMNPQRSTVWY"    */
} MIXDCHLET;

extern MIXDCHLET *AllocDirichlet(int N, char *alphabet);
extern void       FreeDirichlet(MIXDCHLET *d);
extern MIXDCHLET *ReadDirichletFile(char *file);

extern double     Gammln(double x);
extern double     IncompleteGamma(double a, double x);
extern double     SampleGamma(double alpha);

extern double     SampleBeta(double theta1, double theta2);

extern double     Dchlet_logp_counts(double *c, double *alpha, int K);
extern double     Dchlet_logp_probs(double *p, double *alpha, int K);
extern void       SampleDirichlet(double *alpha, int K, double *p);

#endif /* DIRICHLETH_INCLUDED */
/*****************************************************************
 * @LICENSE@
 *****************************************************************/