commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1010778 [28/39] - in /websites/production/commons/content/proper/commons-rng: ./ commons-rng-client-api/ commons-rng-client-api/apidocs/ commons-rng-client-api/apidocs/org/apache/commons/rng/ commons-rng-client-api/apidocs/org/apache/commo...
Date Thu, 20 Apr 2017 11:33:54 GMT
Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/CollectionSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/CollectionSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/CollectionSampler.html Thu Apr 20 11:33:45 2017
@@ -50,11 +50,11 @@
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment">     * @param collection Collection to be sampled.</em>
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>  <em class="jxr_javadoccomment">     * A (shallow) copy will be stored in the created instance.</em>
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>  <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code collection.size() &lt;= 0}.</em>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code collection} is empty.</em>
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>  <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/rng/sampling/CollectionSampler.html">CollectionSampler</a>(UniformRandomProvider rng,
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>                               Collection&lt;T&gt; collection) {
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">if</strong> (collection.size() &lt;= 0) {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">if</strong> (collection.isEmpty()) {
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Empty collection"</span>);
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>          }
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>  
@@ -63,25 +63,18 @@
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>      }
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>  
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>  <em class="jxr_javadoccomment">     * Picks one of the items in the given {@code collection}.</em>
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>  <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>  <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>  <em class="jxr_javadoccomment">     * Sampling is without replacement; but if the source collection</em>
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>  <em class="jxr_javadoccomment">     * contains identical objects, the sample may include repeats.</em>
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>  <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>  <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>  <em class="jxr_javadoccomment">     * There is no guarantee that the concrete type of the returned</em>
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>  <em class="jxr_javadoccomment">     * collection is the same as the source collection.</em>
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>  <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>  <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>  <em class="jxr_javadoccomment">     * @return a random sample.</em>
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>      <strong class="jxr_keyword">public</strong> T sample() {
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">return</strong> items.get(rng.nextInt(items.size()));
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>      }
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>  }
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  <em class="jxr_javadoccomment">     * Picks one of the items from the</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  <em class="jxr_javadoccomment">     * {@link #CollectionSampler(UniformRandomProvider,Collection)</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>  <em class="jxr_javadoccomment">     * collection passed to the constructor}.</em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  <em class="jxr_javadoccomment">     * @return a random sample.</em>
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      <strong class="jxr_keyword">public</strong> T sample() {
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <strong class="jxr_keyword">return</strong> items.get(rng.nextInt(items.size()));
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>      }
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/ListSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/ListSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/ListSampler.html Thu Apr 20 11:33:45 2017
@@ -121,6 +121,6 @@
 <a class="jxr_linenumber" name="L113" href="#L113">113</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/PermutationSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/PermutationSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/PermutationSampler.html Thu Apr 20 11:33:45 2017
@@ -160,6 +160,6 @@
 <a class="jxr_linenumber" name="L152" href="#L152">152</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/AhrensDieterExponentialSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/AhrensDieterExponentialSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/AhrensDieterExponentialSampler.html Thu Apr 20 11:33:45 2017
@@ -126,6 +126,6 @@
 <a class="jxr_linenumber" name="L118" href="#L118">118</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/AhrensDieterMarsagliaTsangGammaSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/AhrensDieterMarsagliaTsangGammaSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/AhrensDieterMarsagliaTsangGammaSampler.html Thu Apr 20 11:33:45 2017
@@ -55,7 +55,7 @@
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>      <em class="jxr_javadoccomment">/** The alpha parameter. */</em>
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> alpha;
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>      <em class="jxr_javadoccomment">/** Gaussian sampling. */</em>
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a> gaussian;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> gaussian;
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>      <em class="jxr_javadoccomment">/**</em>
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
@@ -68,7 +68,7 @@
 <a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">super</strong>(rng);
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>          <strong class="jxr_keyword">this</strong>.alpha = alpha;
 <a class="jxr_linenumber" name="L62" href="#L62">62</a>          <strong class="jxr_keyword">this</strong>.theta = theta;
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>          gaussian = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a>(rng, 0, 1);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          gaussian = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html">MarsagliaNormalizedGaussianSampler</a>(rng);
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>      }
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>  
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
@@ -146,6 +146,6 @@
 <a class="jxr_linenumber" name="L138" href="#L138">138</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html Thu Apr 20 11:33:45 2017
@@ -29,67 +29,71 @@
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment">/**</em>
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment"> * &lt;a href="https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform"&gt;</em>
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment"> * Box-Muller algorithm&lt;/a&gt; for sampling from a Gaussian distribution.</em>
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a>
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/SamplerBase.html">SamplerBase</a>
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/ContinuousSampler.html">ContinuousSampler</a> {
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <em class="jxr_javadoccomment">/** Next gaussian. */</em>
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">double</strong> nextGaussian = Double.NaN;
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <em class="jxr_javadoccomment">/** Mean. */</em>
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> mean;
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <em class="jxr_javadoccomment">/** standardDeviation. */</em>
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> standardDeviation;
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>  
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment">     * @param mean Mean of the Gaussian distribution.</em>
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment">     * @param standardDeviation Standard deviation of the Gaussian distribution.</em>
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a>(UniformRandomProvider rng,
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>                                      <strong class="jxr_keyword">double</strong> mean,
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>                                      <strong class="jxr_keyword">double</strong> standardDeviation) {
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>          <strong class="jxr_keyword">super</strong>(rng);
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">this</strong>.mean = mean;
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">this</strong>.standardDeviation = standardDeviation;
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>      }
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>      @Override
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> sample() {
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> random;
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">if</strong> (Double.isNaN(nextGaussian)) {
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>              <em class="jxr_comment">// Generate a pair of Gaussian numbers.</em>
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> x = nextDouble();
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> y = nextDouble();
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> alpha = 2 * Math.PI * x;
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> r = Math.sqrt(-2 * Math.log(y));
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>  
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>              <em class="jxr_comment">// Return the first element of the generated pair.</em>
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>              random = r * Math.cos(alpha);
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>  
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <em class="jxr_comment">// Keep second element of the pair for next invocation.</em>
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>              nextGaussian = r * Math.sin(alpha);
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>          } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>              <em class="jxr_comment">// Use the second element of the pair (generated at the</em>
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <em class="jxr_comment">// previous invocation).</em>
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>              random = nextGaussian;
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>  
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>              <em class="jxr_comment">// Both elements of the pair have been used.</em>
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>              nextGaussian = Double.NaN;
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          }
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment"> * @deprecated since v1.1. Please use {@link BoxMullerNormalizedGaussianSampler}</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * and {@link GaussianSampler} instead.</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  @Deprecated
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/SamplerBase.html">SamplerBase</a>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/ContinuousSampler.html">ContinuousSampler</a> {
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <em class="jxr_javadoccomment">/** Next gaussian. */</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">double</strong> nextGaussian = Double.NaN;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <em class="jxr_javadoccomment">/** Mean. */</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> mean;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <em class="jxr_javadoccomment">/** standardDeviation. */</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> standardDeviation;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment">     * @param mean Mean of the Gaussian distribution.</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment">     * @param standardDeviation Standard deviation of the Gaussian distribution.</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a>(UniformRandomProvider rng,
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>                                      <strong class="jxr_keyword">double</strong> mean,
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>                                      <strong class="jxr_keyword">double</strong> standardDeviation) {
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <strong class="jxr_keyword">super</strong>(rng);
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">this</strong>.mean = mean;
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">this</strong>.standardDeviation = standardDeviation;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      }
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      @Override
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> sample() {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> random;
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">if</strong> (Double.isNaN(nextGaussian)) {
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <em class="jxr_comment">// Generate a pair of Gaussian numbers.</em>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> x = nextDouble();
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> y = nextDouble();
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> alpha = 2 * Math.PI * x;
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> r = Math.sqrt(-2 * Math.log(y));
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>              <em class="jxr_comment">// Return the first element of the generated pair.</em>
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>              random = r * Math.cos(alpha);
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>  
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <em class="jxr_comment">// Keep second element of the pair for next invocation.</em>
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              nextGaussian = r * Math.sin(alpha);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>              <em class="jxr_comment">// Use the second element of the pair (generated at the</em>
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              <em class="jxr_comment">// previous invocation).</em>
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              random = nextGaussian;
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>  
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>          <strong class="jxr_keyword">return</strong> standardDeviation * random + mean;
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>      }
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>  
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>      @Override
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>      <strong class="jxr_keyword">public</strong> String toString() {
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Box-Muller Gaussian deviate ["</span> + <strong class="jxr_keyword">super</strong>.toString() + <span class="jxr_string">"]"</span>;
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>      }
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>  }
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              <em class="jxr_comment">// Both elements of the pair have been used.</em>
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>              nextGaussian = Double.NaN;
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          }
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>  
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          <strong class="jxr_keyword">return</strong> standardDeviation * random + mean;
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>      }
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>  
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      @Override
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Box-Muller Gaussian deviate ["</span> + <strong class="jxr_keyword">super</strong>.toString() + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>      }
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerLogNormalSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerLogNormalSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerLogNormalSampler.html Thu Apr 20 11:33:45 2017
@@ -38,7 +38,7 @@
 <a class="jxr_linenumber" name="L30" href="#L30">30</a>      <em class="jxr_javadoccomment">/** Shape. */</em>
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> shape;
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>      <em class="jxr_javadoccomment">/** Gaussian sampling. */</em>
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a> gaussian;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> gaussian;
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>  
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>      <em class="jxr_javadoccomment">/**</em>
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
@@ -51,7 +51,7 @@
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>          <strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">null</strong>); <em class="jxr_comment">// Not used.</em>
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">this</strong>.scale = scale;
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">this</strong>.shape = shape;
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          gaussian = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerGaussianSampler.html">BoxMullerGaussianSampler</a>(rng, 0, 1);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          gaussian = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html">BoxMullerNormalizedGaussianSampler</a>(rng);
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>      }
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>  
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
@@ -68,6 +68,6 @@
 <a class="jxr_linenumber" name="L60" href="#L60">60</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html (added)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html Thu Apr 20 11:33:45 2017
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>BoxMullerNormalizedGaussianSampler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rng.sampling.distribution;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rng.UniformRandomProvider;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment"> * &lt;a href="https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform"&gt;</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment"> * Box-Muller algorithm&lt;/a&gt; for sampling from Gaussian distribution with</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> * mean 0 and standard deviation 1.</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * @since 1.1</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html">BoxMullerNormalizedGaussianSampler</a>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/SamplerBase.html">SamplerBase</a>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <em class="jxr_javadoccomment">/** Next gaussian. */</em>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">double</strong> nextGaussian = Double.NaN;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html">BoxMullerNormalizedGaussianSampler</a>(UniformRandomProvider rng) {
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <strong class="jxr_keyword">super</strong>(rng);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      }
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      @Override
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> sample() {
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> random;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">if</strong> (Double.isNaN(nextGaussian)) {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>              <em class="jxr_comment">// Generate a pair of Gaussian numbers.</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> x = nextDouble();
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> y = nextDouble();
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> alpha = 2 * Math.PI * x;
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> r = Math.sqrt(-2 * Math.log(y));
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>  
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>              <em class="jxr_comment">// Return the first element of the generated pair.</em>
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>              random = r * Math.cos(alpha);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>              <em class="jxr_comment">// Keep second element of the pair for next invocation.</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>              nextGaussian = r * Math.sin(alpha);
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>              <em class="jxr_comment">// Use the second element of the pair (generated at the</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>              <em class="jxr_comment">// previous invocation).</em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>              random = nextGaussian;
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <em class="jxr_comment">// Both elements of the pair have been used.</em>
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>              nextGaussian = Double.NaN;
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          }
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>  
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">return</strong> random;
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>      }
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>  
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      @Override
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Box-Muller normalized Gaussian deviate ["</span> + <strong class="jxr_keyword">super</strong>.toString() + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>      }
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/BoxMullerNormalizedGaussianSampler.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ChengBetaSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ChengBetaSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ChengBetaSampler.html Thu Apr 20 11:33:45 2017
@@ -183,6 +183,6 @@
 <a class="jxr_linenumber" name="L175" href="#L175">175</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousInverseCumulativeProbabilityFunction.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousInverseCumulativeProbabilityFunction.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousInverseCumulativeProbabilityFunction.html Thu Apr 20 11:33:45 2017
@@ -48,6 +48,6 @@
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousSampler.html Thu Apr 20 11:33:45 2017
@@ -37,6 +37,6 @@
 <a class="jxr_linenumber" name="L29" href="#L29">29</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.html Thu Apr 20 11:33:45 2017
@@ -65,6 +65,6 @@
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteInverseCumulativeProbabilityFunction.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteInverseCumulativeProbabilityFunction.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteInverseCumulativeProbabilityFunction.html Thu Apr 20 11:33:45 2017
@@ -48,6 +48,6 @@
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteSampler.html Thu Apr 20 11:33:45 2017
@@ -37,6 +37,6 @@
 <a class="jxr_linenumber" name="L29" href="#L29">29</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.html Thu Apr 20 11:33:45 2017
@@ -85,6 +85,6 @@
 <a class="jxr_linenumber" name="L77" href="#L77">77</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/GaussianSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/GaussianSampler.html (added)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/GaussianSampler.html Thu Apr 20 11:33:45 2017
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>GaussianSampler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/sampling/distribution/GaussianSampler.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rng.sampling.distribution;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <em class="jxr_javadoccomment"> * Sampling from a Gaussian distribution with given mean and</em>
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment"> * standard deviation.</em>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment"> * @since 1.1</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/GaussianSampler.html">GaussianSampler</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/ContinuousSampler.html">ContinuousSampler</a> {
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>      <em class="jxr_javadoccomment">/** Mean. */</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> mean;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <em class="jxr_javadoccomment">/** standardDeviation. */</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> standardDeviation;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <em class="jxr_javadoccomment">/** Normalized Gaussian sampler. */</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> normalized;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment">     * @param normalized Generator of N(0,1) Gaussian distributed random numbers.</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment">     * @param mean Mean of the Gaussian distribution.</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment">     * @param standardDeviation Standard deviation of the Gaussian distribution.</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/GaussianSampler.html">GaussianSampler</a>(<a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> normalized,
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>                             <strong class="jxr_keyword">double</strong> mean,
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>                             <strong class="jxr_keyword">double</strong> standardDeviation) {
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">this</strong>.normalized = normalized;
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">this</strong>.mean = mean;
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          <strong class="jxr_keyword">this</strong>.standardDeviation = standardDeviation;
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      }
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      @Override
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> sample() {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">return</strong> standardDeviation * normalized.sample() + mean;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      }
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      @Override
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Gaussian deviate ["</span> + normalized.toString() + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/GaussianSampler.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InternalGamma.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InternalGamma.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InternalGamma.html Thu Apr 20 11:33:45 2017
@@ -155,6 +155,6 @@
 <a class="jxr_linenumber" name="L147" href="#L147">147</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InternalUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InternalUtils.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InternalUtils.html Thu Apr 20 11:33:45 2017
@@ -140,6 +140,6 @@
 <a class="jxr_linenumber" name="L132" href="#L132">132</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformContinuousSampler.html Thu Apr 20 11:33:45 2017
@@ -89,6 +89,6 @@
 <a class="jxr_linenumber" name="L81" href="#L81">81</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformDiscreteSampler.html Thu Apr 20 11:33:45 2017
@@ -89,6 +89,6 @@
 <a class="jxr_linenumber" name="L81" href="#L81">81</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Modified: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformParetoSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformParetoSampler.html (original)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/InverseTransformParetoSampler.html Thu Apr 20 11:33:45 2017
@@ -64,6 +64,6 @@
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>

Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html (added)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html Thu Apr 20 11:33:45 2017
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>MarsagliaLogNormalSampler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rng.sampling.distribution;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rng.UniformRandomProvider;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment"> * &lt;a href="https://en.wikipedia.org/wiki/Marsaglia_polar_method"&gt;</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment"> * polar method&lt;/a&gt; for sampling from a Log normal distribution.</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment"> * @since 1.1</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html">MarsagliaLogNormalSampler</a>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/SamplerBase.html">SamplerBase</a>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>      <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/ContinuousSampler.html">ContinuousSampler</a> {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <em class="jxr_javadoccomment">/** Scale. */</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> scale;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <em class="jxr_javadoccomment">/** Shape. */</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> shape;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <em class="jxr_javadoccomment">/** Gaussian sampling. */</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> gaussian;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment">     * @param scale Scale of the Log normal distribution.</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment">     * @param shape Shape of the Log normal distribution.</em>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html">MarsagliaLogNormalSampler</a>(UniformRandomProvider rng,
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>                                       <strong class="jxr_keyword">double</strong> scale,
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>                                       <strong class="jxr_keyword">double</strong> shape) {
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">null</strong>); <em class="jxr_comment">// Not used.</em>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">this</strong>.scale = scale;
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <strong class="jxr_keyword">this</strong>.shape = shape;
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          gaussian = <strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html">MarsagliaNormalizedGaussianSampler</a>(rng);
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      }
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      @Override
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> sample() {
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">return</strong> Math.exp(scale + shape * gaussian.sample());
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      }
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>  
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      @Override
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Marsaglia Log Normal ["</span> + gaussian.toString() + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      }
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaLogNormalSampler.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html
==============================================================================
--- websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html (added)
+++ websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html Thu Apr 20 11:33:45 2017
@@ -0,0 +1,98 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>MarsagliaNormalizedGaussianSampler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment"> * contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment"> * the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment"> *</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment"> */</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rng.sampling.distribution;
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rng.UniformRandomProvider;
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment"> * &lt;a href="https://en.wikipedia.org/wiki/Marsaglia_polar_method"&gt;</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment"> * Marsaglia polar method&lt;/a&gt; for sampling from a Gaussian distribution</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment"> * with mean 0 and standard deviation 1.</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment"> * This is a variation of the algorithm implemented in</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * {@link BoxMullerNormalizedGaussianSampler}.</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * @since 1.1</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html">MarsagliaNormalizedGaussianSampler</a>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/SamplerBase.html">SamplerBase</a>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">implements</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/NormalizedGaussianSampler.html">NormalizedGaussianSampler</a> {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <em class="jxr_javadoccomment">/** Next gaussian. */</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">double</strong> nextGaussian = Double.NaN;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment">     * @param rng Generator of uniformly distributed random numbers.</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../../org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html">MarsagliaNormalizedGaussianSampler</a>(UniformRandomProvider rng) {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">super</strong>(rng);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      }
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      @Override
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> sample() {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">if</strong> (Double.isNaN(nextGaussian)) {
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>              <em class="jxr_comment">// Rejection scheme for selecting a pair that lies within the unit circle.</em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>              SAMPLE: <strong class="jxr_keyword">while</strong> (<strong class="jxr_keyword">true</strong>) {
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>                  <em class="jxr_comment">// Generate a pair of numbers within [-1 , 1).</em>
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> x = 2 * nextDouble() - 1;
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> y = 2 * nextDouble() - 1;
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> r2 = x * x + y * y;
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>  
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>                  <strong class="jxr_keyword">if</strong> (r2 &gt; 1 || r2 == 0) {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>                      <em class="jxr_comment">// Pair is not within the unit circle: Generate another one.</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>                      <strong class="jxr_keyword">continue</strong> SAMPLE;
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>                  }
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <em class="jxr_comment">// Pair (x, y) is within unit circle.</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>                  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> alpha = Math.sqrt(-2 * Math.log(r2) / r2);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                  <em class="jxr_comment">// Keep second element of the pair for next invocation.</em>
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>                  nextGaussian = alpha * y;
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>                  <em class="jxr_comment">// Return the first element of the generated pair.</em>
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>                  <strong class="jxr_keyword">return</strong> alpha * x;
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              }
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <em class="jxr_comment">// Use the second element of the pair (generated at the</em>
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>              <em class="jxr_comment">// previous invocation).</em>
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> r = nextGaussian;
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>  
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>              <em class="jxr_comment">// Both elements of the pair have been used.</em>
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              nextGaussian = Double.NaN;
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>  
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>              <strong class="jxr_keyword">return</strong> r;
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>          }
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>      }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>  
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      <em class="jxr_javadoccomment">/** {@inheritDoc} */</em>
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>      @Override
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <strong class="jxr_keyword">return</strong> <span class="jxr_string">"Box-Muller (with rejection) normalized Gaussian deviate ["</span> + <strong class="jxr_keyword">super</strong>.toString() + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>      }
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>

Propchange: websites/production/commons/content/proper/commons-rng/commons-rng-sampling/xref/org/apache/commons/rng/sampling/distribution/MarsagliaNormalizedGaussianSampler.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message