HowManyAreAnalyzed(): use status_user_agent to report progress
[linguistica.git] / DCNgrammar.h
blobd91c742616d9a00697d2065b2050ce10a2d09315
1 // Grammar type for stress discovery with Dynamic Computational Networks
2 // Copyright © 2009 The University of Chicago
3 #ifndef GRAMMAR_H
4 #define GRAMMAR_H
6 // See the learning documentation in DCNlearning.h for an overview.
8 #include <QLabel>
10 class QLabel;
12 /**
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
17 * DCN model.
19 class grammar
22 private:
23 float alpha;
24 float beta;
25 float I;
26 float F;
27 float P;
28 float bias;
30 public:
31 grammar();
32 grammar(grammar &theGrammar);
33 virtual ~grammar();
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);
47 #endif // GRAMMAR_H