Revision 165, 0.5 kB
(checked in by smidl, 16 years ago)
|
Switch from eprod to mprod, merger devel
|
Line | |
---|
1 | #include <itpp/itbase.h> |
---|
2 | #include <stat/libEF.h> |
---|
3 | #include <stat/merger.h> |
---|
4 | |
---|
5 | using namespace itpp; |
---|
6 | |
---|
7 | //These lines are needed for use of cout and endl |
---|
8 | using std::cout; |
---|
9 | using std::endl; |
---|
10 | |
---|
11 | int main() { |
---|
12 | |
---|
13 | RV x("{x }","1"); |
---|
14 | RV y("{y }","1"); |
---|
15 | RV z("{z }","1"); |
---|
16 | |
---|
17 | mlnorm<fsqmat> fx(x,y); |
---|
18 | mlnorm<fsqmat> fy(x,z); |
---|
19 | |
---|
20 | fx.set_parameters("1.5",mat("1")); |
---|
21 | fy.set_parameters("1.3",mat("1")); |
---|
22 | |
---|
23 | Array<mpdf* > A(2); |
---|
24 | A(0)=&fx; |
---|
25 | A(1)=&fy; |
---|
26 | |
---|
27 | merger M(A); |
---|
28 | eEmp res=M.merge(100); |
---|
29 | |
---|
30 | cout << res.mean() << end; |
---|
31 | //Exit program: |
---|
32 | return 0; |
---|
33 | |
---|
34 | } |
---|