<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Gpr_interfaces.Sigs.Eval.Covariances.html"> <link rel="next" href="Gpr_interfaces.Sigs.Eval.Cov_sampler.html"> <link rel="Up" href="Gpr_interfaces.Sigs.Eval.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Gpr" rel="Chapter" href="Gpr.html"> <link title="Gpr_interfaces" rel="Chapter" href="Gpr_interfaces.html"> <link title="Gpr_utils" rel="Chapter" href="Gpr_utils.html"> <link title="Gpr_block_diag" rel="Chapter" href="Gpr_block_diag.html"> <link title="Gpr_cov_const" rel="Chapter" href="Gpr_cov_const.html"> <link title="Gpr_cov_lin_ard" rel="Chapter" href="Gpr_cov_lin_ard.html"> <link title="Gpr_cov_lin_one" rel="Chapter" href="Gpr_cov_lin_one.html"> <link title="Gpr_cov_se_iso" rel="Chapter" href="Gpr_cov_se_iso.html"> <link title="Gpr_cov_se_fat" rel="Chapter" href="Gpr_cov_se_fat.html"> <link title="Gpr_fitc_gp" rel="Chapter" href="Gpr_fitc_gp.html"> <link title="Gpr_version" rel="Chapter" href="Gpr_version.html"><title>Gpr_interfaces.Sigs.Eval.Sampler</title> </head> <body> <div class="navbar"><a class="pre" href="Gpr_interfaces.Sigs.Eval.Covariances.html" title="Gpr_interfaces.Sigs.Eval.Covariances">Previous</a> <a class="up" href="Gpr_interfaces.Sigs.Eval.html" title="Gpr_interfaces.Sigs.Eval">Up</a> <a class="post" href="Gpr_interfaces.Sigs.Eval.Cov_sampler.html" title="Gpr_interfaces.Sigs.Eval.Cov_sampler">Next</a> </div> <h1>Module <a href="type_Gpr_interfaces.Sigs.Eval.Sampler.html">Gpr_interfaces.Sigs.Eval.Sampler</a></h1> <pre><span class="keyword">module</span> Sampler: <code class="code">sig</code> <a href="Gpr_interfaces.Sigs.Eval.Sampler.html">..</a> <code class="code">end</code></pre><div class="info module top"> Module for sampling single points from the posterior distribution<br> </div> <hr width="100%"> <pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre> <div class="info "> Type of sampler<br> </div> <pre><span id="VALcalc"><span class="keyword">val</span> calc</span> : <code class="type">?predictive:bool -><br> <a href="Gpr_interfaces.Sigs.Eval.Mean.html#TYPEt">Gpr_interfaces.Sigs.Eval.Mean.t</a> -><br> <a href="Gpr_interfaces.Sigs.Eval.Variance.html#TYPEt">Gpr_interfaces.Sigs.Eval.Variance.t</a> -> <a href="Gpr_interfaces.Sigs.Eval.Sampler.html#TYPEt">t</a></code></pre><div class="info "> <code class="code">calc ?predictive mean variance</code><br> <b>Returns</b> sampler given <code class="code">mean</code> and <code class="code">variance</code>. If <code class="code">predictive</code> is true, the samples will be noisy.<br> </div> <pre><span id="VALsample"><span class="keyword">val</span> sample</span> : <code class="type">?rng:Gsl.Rng.t -> <a href="Gpr_interfaces.Sigs.Eval.Sampler.html#TYPEt">t</a> -> float</code></pre><div class="info "> <code class="code">sample ?rng sampler</code><br> <b>Returns</b> a sample from the posterior distribution given <code class="code">sampler</code> and GSL random number generator <code class="code">rng</code>.<br> </div> <div class="param_info"><code class="code">rng</code> : default = GSL default</div> <pre><span id="VALsamples"><span class="keyword">val</span> samples</span> : <code class="type">?rng:Gsl.Rng.t -> <a href="Gpr_interfaces.Sigs.Eval.Sampler.html#TYPEt">t</a> -> n:int -> Lacaml.D.vec</code></pre><div class="info "> <code class="code">samples ?rng sampler ~n</code><br> <b>Returns</b> <code class="code">n</code> samples from the posterior distribution given <code class="code">sampler</code>.<br> </div> <div class="param_info"><code class="code">rng</code> : default = GSL default</div> </body></html>