root/applications/bdmtoolbox/tutorial/userguide/pdfds2_example.m @ 1058

Revision 944, 0.7 kB (checked in by smidl, 14 years ago)

Doc + new examples

Line 
1clear all
2% name random variables
3x = RV({'x'},2);
4
5
6fx.class  = 'mgnorm<ldmat>';             
7fx.rv     = x;             
8fx.rvc    = RVtimes(x,-1);             
9fx.g.class= 'mexFnc';                   % function is evaluated in matlab
10fx.g.function = 'test_function';        % name of the matlab function to evaluate
11fx.g.dim  = 2;                          % expected dimension of output
12fx.g.dimc = 2;                          % expected dimension of input
13fx.R      = eye(2);                     % variance R
14
15
16% create DS
17DS.class = 'PdfDS';
18DS.pdf = fx;
19DS.init_rv = RVtimes([x], [-1]);
20DS.init_values = [0.1, 0.2];
21
22experiment.ndat=100;
23
24%M=estimator(DS,{},experiment);
25M=estimator(DS,{},experiment);
26
27%%% store results
Note: See TracBrowser for help on using the browser.