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