Debian Codegraph @

examples/TestXML/testMVN.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!--
3 ~ testMVN.xml
4 ~
5 ~ Copyright (c) 2002-2012 Alexei Drummond, Andrew Rambaut and Marc Suchard
6 ~
7 ~ This file is part of BEAST.
8 ~ See the NOTICE file distributed with this work for additional
9 ~ information regarding copyright ownership and licensing.
10 ~
11 ~ BEAST is free software; you can redistribute it and/or modify
12 ~ it under the terms of the GNU Lesser General Public License as
13 ~ published by the Free Software Foundation; either version 2
14 ~ of the License, or (at your option) any later version.
15 ~
16 ~ BEAST is distributed in the hope that it will be useful,
17 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ~ GNU Lesser General Public License for more details.
20 ~
21 ~ You should have received a copy of the GNU Lesser General Public
22 ~ License along with BEAST; if not, write to the
23 ~ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
24 ~ Boston, MA 02110-1301 USA
25 -->
26
27 <beast>
28 <matrixParameter id="locations">
29 <parameter value="0.0 2.0"/>
30 <parameter value="0.0 2.0"/>
31 <parameter value="0.0 2.0"/>
32 <parameter value="0.0 2.0"/>
33 <parameter value="0.0 2.0"/>
34 </matrixParameter>
35
36 <multivariateDistributionLikelihood id="normalModel">
37 <distribution>
38 <multivariateNormalDistributionModel>
39 <meanParameter>
40 <parameter id="mean" value="0.0 10.0"/>
41 </meanParameter>
42 <precisionParameter>
43 <matrixParameter id="precision">
44 <parameter value="1.0 0.0"/>
45 <parameter value="0.0 10.0"/>
46 </matrixParameter>
47 </precisionParameter>
48 </multivariateNormalDistributionModel>
49 </distribution>
50 <data>
51 <matrixParameter idref="locations"/>
52 </data>
53 </multivariateDistributionLikelihood>
54
55 <multivariateNormalPrior id="meanPrior">
56 <meanParameter>
57 <parameter value="0.0 0.0"/>
58 </meanParameter>
59 <precisionParameter>
60 <matrixParameter>
61 <parameter value="0.001 0.000"/>
62 <parameter value="0.000 0.001"/>
63 </matrixParameter>
64 </precisionParameter>
65 <data>
66 <parameter idref="mean"/>
67 </data>
68 </multivariateNormalPrior>
69
70 <multivariateWishartPrior id="precisionPrior" df="2">
71 <scaleMatrix>
72 <matrixParameter>
73 <parameter value="1.0 0.0"/>
74 <parameter value="0.0 1.0"/>
75 </matrixParameter>
76 </scaleMatrix>
77 <data>
78 <parameter idref="precision"/>
79 </data>
80 </multivariateWishartPrior>
81
82 <operators id="operators" optimizationSchedule="log">
83 <!--
84 <randomWalkOperator windowSize="1.0" weight="273">
85 <matrixParameter idref="locations"/>
86 </randomWalkOperator>
87 -->
88 <!--
89 <randomWalkOperator windowSize="1.0" weight="1">
90 <parameter idref="mean"/>
91 </randomWalkOperator>
92 -->
93 <precisionGibbsOperator weight="1">
94 <multivariateDistributionLikelihood idref="normalModel"/>
95 <multivariateWishartPrior idref="precisionPrior"/>
96 </precisionGibbsOperator>
97 </operators>
98
99 <mcmc id="mcmc" chainLength="10000000" autoOptimize="true">
100 <posterior id="posterior">
101 <prior id="prior">
102 <multivariateNormalPrior idref="meanPrior"/>
103 <multivariateWishartPrior idref="precisionPrior"/>
104 </prior>
105 <likelihood id="likelihood">
106 <multivariateDistributionLikelihood idref="normalModel"/>
107 </likelihood>
108 </posterior>
109
110 <operators idref="operators"/>
111
112 <log id="screenLog" logEvery="100000">
113 <column label="Posterior" dp="4" width="12">
114 <posterior idref="posterior"/>
115 </column>
116 </log>
117
118 <log id="fileLog2" logEvery="10000" fileName="testMVN.log">
119 <!-- <matrixParameter idref="locations"/> -->
120 <!-- <parameter idref="mean"/> -->
121 <parameter idref="precision"/>
122 </log>
123 </mcmc>
124
125 <report>
126 <property name="timer">
127 <object idref="mcmc"/>
128 </property>
129 </report>
130 </beast>