1 // Grammar type for stress discovery with Dynamic Computational Networks
2 // Copyright © 2009 The University of Chicago
6 // See the learning documentation in DCNlearning.h for an overview.
13 * A grammar holds the DCN's parameters. It's like an array of six
14 * floats, but much smarter, because you can make deep copies and
15 * you can print it really easily. It's an easy way to think of
16 * what the internal grammar of a language-user might be in the
32 grammar(grammar
&theGrammar
);
34 void setValues(float alpha
, float beta
, float I
, float F
, float P
, float bias
);
36 float getAlpha() { return alpha
; }
37 float getBeta() { return beta
; }
38 float getI() { return I
; }
39 float getF() { return F
; }
40 float getP() { return P
; }
41 float getBias() { return bias
; }
43 void print(QLabel
*label
);