n">
          <div class="page-inner">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/reference-manual/statements.html#sampling-statements.section">view current version</a>.
</div>
<div id="sampling" class="section level2">
<h2><span class="header-section-number">12.3</span> Sampling</h2>
<p>Sampling is based on simulating the Hamiltonian of a particle with a
starting position equal to the current parameter values and an initial
momentum 