<?xml version="1.0" standalone="yes"?>
<!-- Generated by BEAUTi v1.4.5                                              -->
<!--       by Alexei J. Drummond and Andrew Rambaut                          -->
<!--       Department of Computer Science, University of Auckland and        -->
<!--       Institute of Evolutionary Biology, University of Edinburgh        -->
<!--       http://beast.bio.ed.ac.uk/                                        -->
<beast>

    <!-- This is a simple constant population size coalescent model              -->
    <!-- that is used to generate an initial tree for the chain.                 -->
    <constantSize id="demo" units="substitutions">
        <populationSize>
            <parameter id="param" value="6.0"/>
        </populationSize>
    </constantSize>

    <operators id="operators">
        <scaleOperator scaleFactor="0.75" weight="1">
            <parameter idref="param"/>
        </scaleOperator>
    </operators>

    <dummyLikelihood id="likelihood">
        <constantSize idref="demo"/>
    </dummyLikelihood>

    <mcmc id="mcmc" chainLength="1000000" autoOptimize="true">
        <posterior id="posterior">
            <prior id="prior">
                <logNormalPrior mean="1" stdev="1" offset="0.0" meanInRealSpace="false">
                    <parameter idref="param"/>
                </logNormalPrior>
            </prior>
            <likelihood>
                <dummyLikelihood idref="likelihood"/>
            </likelihood>
        </posterior>

        <operators idref="operators"/>
        <log id="screenLog" logEvery="10000">
            <column label="Posterior" dp="4" width="12">
                <posterior idref="posterior"/>
            </column>
        </log>
        <log id="fileLog" logEvery="100" fileName="testLogNormalPrior.log">
            <posterior idref="posterior"/>
            <parameter idref="param"/>
        </log>
    </mcmc>

    <report>
        <property name="timer">
            <object idref="mcmc"/>
        </property>
    </report>

    <traceAnalysis fileName="testLogNormalPrior.log" burnIn="1000">
        <!-- the expectation of a lognormal with mean and stdev in log space of 1,1 is e^1.5 -->
        <expectation name="param" value="4.48168907"/>
    </traceAnalysis>

</beast>
