forked from stengel/ecta2002
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prior.h
33 lines (29 loc) · 866 Bytes
/
prior.h
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
/* prior.h
* 27 Apr 2000
* prior generation
*/
/* max. allowed denominator for random fractions */
#define MAXACCURACY 1000
#define DEFAULTACCURACY 23 /* max. denominator for random fractions */
#define FIRSTPRIORSEED 500 /* first seed for prior generation */
/* flags for genprior */
typedef struct
{
int seed ; /* 0: centroid,
* >0: random seed for prior, will be added to
* FIRSTPRIORSEED
*/
int accuracy; /* largest denominator for random prior,
* possibly smaller when only two probabilities
* via continued fractions generation.
* default DEFAULTACCURACY
*/
}
Flagsprior;
/* generate prior, stored in moves[]->behavprob
*/
void genprior(Flagsprior flags);
/* output prior as pair of behavior strategies
* realplan[][] must be allocated
*/
void outprior(void);