Revision 272, 1.5 kB
(checked in by smidl, 16 years ago)
|
Examples
|
Line | |
---|
1 | /*! |
---|
2 | \page ui User Infos and their use |
---|
3 | |
---|
4 | For easier interaction with users, experiments can be configured via structures called User Info. These structures contain information about details of the experiment that is to be performed. Since experiments involve the use of basic BDM classes and their compositions, the experiment description is also hierarchical with specific user info for each object or class. |
---|
5 | |
---|
6 | The User Infos are designed using customized version of the libconfig library (link!). It is specialized for BDM so as to recognize basic mathematical objects, such as vectors and matrices, see ... for details. |
---|
7 | |
---|
8 | (Technically it can be made compatible with matlab structures!) |
---|
9 | |
---|
10 | For example a simple experiment can be configures in a following way: |
---|
11 | \code |
---|
12 | ndat = 100; //number of data points |
---|
13 | prior = {type="enorm"; |
---|
14 | mu = [1, 2, 3]; |
---|
15 | R = [1, 0, 0, |
---|
16 | 0, 1, 0, |
---|
17 | 0, 0, 1]; |
---|
18 | }; |
---|
19 | \endcode |
---|
20 | Exact meaning of root fields in this structure (i.e. ndat and prior) is defined by the application (or mex file) that is using this configuration file. It will look for expected fields and it will ignore any other structures. When it does not find what it is looking for, it terminates with an appropriate error message. |
---|
21 | |
---|
22 | A structure with field \c type="identifier" is special. Such a structure will be parsed by an appropriate class bdm::UIbuilder which will construct the desired object, in this instance of an object of the class bdm::enorm. |
---|
23 | For a detailed example how this mechanism works in practice see \ref arx_ui. |
---|
24 | */ |
---|