s="anchor" href="#examples"></a>Examples</h2>
    <pre class="examples"><div class='input'><span class='kw'>y</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/stats/Normal.html'>rnorm</a></span>(<span class='fl'>10</span>)
<span class='kw'>dp</span> <span class='op'>&lt;-</span> <span class='fu'><a href='DirichletProcessGaussian.html'>DirichletProcessGaussian</a></span>(<span class='kw'>y</span>)
<span class='kw'>dp</span> <span class='op'>&lt;-</span> <span class='fu'><a hre