commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r951633 [20/49] - in /websites/production/commons/content/proper/commons-math: xref-test/ xref-test/org/apache/commons/math3/ xref-test/org/apache/commons/math3/analysis/ xref-test/org/apache/commons/math3/analysis/differentiation/ xref-tes...
Date Sun, 17 May 2015 17:05:54 GMT
Modified: websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/random/RandomDataGeneratorTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/random/RandomDataGeneratorTest.html (original)
+++ websites/production/commons/content/proper/commons-math/xref-test/org/apache/commons/math3/random/RandomDataGeneratorTest.html Sun May 17 17:05:50 2015
@@ -91,7 +91,7 @@
 <a class="jxr_linenumber" name="L83" href="#L83">83</a>          <strong class="jxr_keyword">long</strong> y = randomData.nextLong(Long.MIN_VALUE, Long.MAX_VALUE);
 <a class="jxr_linenumber" name="L84" href="#L84">84</a>          Assert.assertFalse(x == y);
 <a class="jxr_linenumber" name="L85" href="#L85">85</a>      }
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>      
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>  
 <a class="jxr_linenumber" name="L87" href="#L87">87</a>      @Test
 <a class="jxr_linenumber" name="L88" href="#L88">88</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextUniformExtremeValues() {
 <a class="jxr_linenumber" name="L89" href="#L89">89</a>          <strong class="jxr_keyword">double</strong> x = randomData.nextUniform(-Double.MAX_VALUE, Double.MAX_VALUE);
@@ -102,7 +102,7 @@
 <a class="jxr_linenumber" name="L94" href="#L94">94</a>          Assert.assertFalse(Double.isInfinite(x));
 <a class="jxr_linenumber" name="L95" href="#L95">95</a>          Assert.assertFalse(Double.isInfinite(y));
 <a class="jxr_linenumber" name="L96" href="#L96">96</a>      }
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>      
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>  
 <a class="jxr_linenumber" name="L98" href="#L98">98</a>      @Test
 <a class="jxr_linenumber" name="L99" href="#L99">99</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextIntIAE() {
 <a class="jxr_linenumber" name="L100" href="#L100">100</a>         <strong class="jxr_keyword">try</strong> {
@@ -112,7 +112,7 @@
 <a class="jxr_linenumber" name="L104" href="#L104">104</a>             <em class="jxr_comment">// ignored</em>
 <a class="jxr_linenumber" name="L105" href="#L105">105</a>         }
 <a class="jxr_linenumber" name="L106" href="#L106">106</a>     }
-<a class="jxr_linenumber" name="L107" href="#L107">107</a>     
+<a class="jxr_linenumber" name="L107" href="#L107">107</a> 
 <a class="jxr_linenumber" name="L108" href="#L108">108</a>     @Test
 <a class="jxr_linenumber" name="L109" href="#L109">109</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextIntNegativeToPositiveRange() {
 <a class="jxr_linenumber" name="L110" href="#L110">110</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
@@ -121,7 +121,7 @@
 <a class="jxr_linenumber" name="L113" href="#L113">113</a>         }
 <a class="jxr_linenumber" name="L114" href="#L114">114</a>     }
 <a class="jxr_linenumber" name="L115" href="#L115">115</a> 
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>     @Test 
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>     @Test
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextIntNegativeRange() {
 <a class="jxr_linenumber" name="L118" href="#L118">118</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L119" href="#L119">119</a>             checkNextIntUniform(-7, -4);
@@ -130,7 +130,7 @@
 <a class="jxr_linenumber" name="L122" href="#L122">122</a>         }
 <a class="jxr_linenumber" name="L123" href="#L123">123</a>     }
 <a class="jxr_linenumber" name="L124" href="#L124">124</a> 
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>     @Test 
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     @Test
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextIntPositiveRange() {
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>             checkNextIntUniform(0, 3);
@@ -156,7 +156,7 @@
 <a class="jxr_linenumber" name="L148" href="#L148">148</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; len; i++) {
 <a class="jxr_linenumber" name="L149" href="#L149">149</a>             expected[i] = 1d / len;
 <a class="jxr_linenumber" name="L150" href="#L150">150</a>         }
-<a class="jxr_linenumber" name="L151" href="#L151">151</a>         
+<a class="jxr_linenumber" name="L151" href="#L151">151</a> 
 <a class="jxr_linenumber" name="L152" href="#L152">152</a>         TestUtils.assertChiSquareAccept(expected, observed, 0.001);
 <a class="jxr_linenumber" name="L153" href="#L153">153</a>     }
 <a class="jxr_linenumber" name="L154" href="#L154">154</a> 
@@ -177,7 +177,7 @@
 <a class="jxr_linenumber" name="L169" href="#L169">169</a>                        (((<strong class="jxr_keyword">double</strong>) upper) - ((<strong class="jxr_keyword">double</strong>) lower));
 <a class="jxr_linenumber" name="L170" href="#L170">170</a>         Assert.assertTrue(ratio &gt; 0.99999);
 <a class="jxr_linenumber" name="L171" href="#L171">171</a>     }
-<a class="jxr_linenumber" name="L172" href="#L172">172</a>     
+<a class="jxr_linenumber" name="L172" href="#L172">172</a> 
 <a class="jxr_linenumber" name="L173" href="#L173">173</a>     @Test
 <a class="jxr_linenumber" name="L174" href="#L174">174</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextLongIAE() {
 <a class="jxr_linenumber" name="L175" href="#L175">175</a>         <strong class="jxr_keyword">try</strong> {
@@ -196,7 +196,7 @@
 <a class="jxr_linenumber" name="L188" href="#L188">188</a>         }
 <a class="jxr_linenumber" name="L189" href="#L189">189</a>     }
 <a class="jxr_linenumber" name="L190" href="#L190">190</a> 
-<a class="jxr_linenumber" name="L191" href="#L191">191</a>     @Test 
+<a class="jxr_linenumber" name="L191" href="#L191">191</a>     @Test
 <a class="jxr_linenumber" name="L192" href="#L192">192</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextLongNegativeRange() {
 <a class="jxr_linenumber" name="L193" href="#L193">193</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L194" href="#L194">194</a>             checkNextLongUniform(-7, -4);
@@ -205,7 +205,7 @@
 <a class="jxr_linenumber" name="L197" href="#L197">197</a>         }
 <a class="jxr_linenumber" name="L198" href="#L198">198</a>     }
 <a class="jxr_linenumber" name="L199" href="#L199">199</a> 
-<a class="jxr_linenumber" name="L200" href="#L200">200</a>     @Test 
+<a class="jxr_linenumber" name="L200" href="#L200">200</a>     @Test
 <a class="jxr_linenumber" name="L201" href="#L201">201</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextLongPositiveRange() {
 <a class="jxr_linenumber" name="L202" href="#L202">202</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L203" href="#L203">203</a>             checkNextLongUniform(0, 3);
@@ -231,7 +231,7 @@
 <a class="jxr_linenumber" name="L223" href="#L223">223</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; len; i++) {
 <a class="jxr_linenumber" name="L224" href="#L224">224</a>             expected[i] = 1d / len;
 <a class="jxr_linenumber" name="L225" href="#L225">225</a>         }
-<a class="jxr_linenumber" name="L226" href="#L226">226</a>         
+<a class="jxr_linenumber" name="L226" href="#L226">226</a> 
 <a class="jxr_linenumber" name="L227" href="#L227">227</a>         TestUtils.assertChiSquareAccept(expected, observed, 0.01);
 <a class="jxr_linenumber" name="L228" href="#L228">228</a>     }
 <a class="jxr_linenumber" name="L229" href="#L229">229</a> 
@@ -252,7 +252,7 @@
 <a class="jxr_linenumber" name="L244" href="#L244">244</a>                        (((<strong class="jxr_keyword">double</strong>) upper) - ((<strong class="jxr_keyword">double</strong>) lower));
 <a class="jxr_linenumber" name="L245" href="#L245">245</a>         Assert.assertTrue(ratio &gt; 0.99999);
 <a class="jxr_linenumber" name="L246" href="#L246">246</a>     }
-<a class="jxr_linenumber" name="L247" href="#L247">247</a>     
+<a class="jxr_linenumber" name="L247" href="#L247">247</a> 
 <a class="jxr_linenumber" name="L248" href="#L248">248</a>     @Test
 <a class="jxr_linenumber" name="L249" href="#L249">249</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureLongIAE() {
 <a class="jxr_linenumber" name="L250" href="#L250">250</a>         <strong class="jxr_keyword">try</strong> {
@@ -262,7 +262,7 @@
 <a class="jxr_linenumber" name="L254" href="#L254">254</a>             <em class="jxr_comment">// ignored</em>
 <a class="jxr_linenumber" name="L255" href="#L255">255</a>         }
 <a class="jxr_linenumber" name="L256" href="#L256">256</a>     }
-<a class="jxr_linenumber" name="L257" href="#L257">257</a>     
+<a class="jxr_linenumber" name="L257" href="#L257">257</a> 
 <a class="jxr_linenumber" name="L258" href="#L258">258</a>     @Test
 <a class="jxr_linenumber" name="L259" href="#L259">259</a>     @Retry(3)
 <a class="jxr_linenumber" name="L260" href="#L260">260</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureLongNegativeToPositiveRange() {
@@ -271,7 +271,7 @@
 <a class="jxr_linenumber" name="L263" href="#L263">263</a>             checkNextSecureLongUniform(-3, 6);
 <a class="jxr_linenumber" name="L264" href="#L264">264</a>         }
 <a class="jxr_linenumber" name="L265" href="#L265">265</a>     }
-<a class="jxr_linenumber" name="L266" href="#L266">266</a>     
+<a class="jxr_linenumber" name="L266" href="#L266">266</a> 
 <a class="jxr_linenumber" name="L267" href="#L267">267</a>     @Test
 <a class="jxr_linenumber" name="L268" href="#L268">268</a>     @Retry(3)
 <a class="jxr_linenumber" name="L269" href="#L269">269</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureLongNegativeRange() {
@@ -280,7 +280,7 @@
 <a class="jxr_linenumber" name="L272" href="#L272">272</a>             checkNextSecureLongUniform(-15, -2);
 <a class="jxr_linenumber" name="L273" href="#L273">273</a>         }
 <a class="jxr_linenumber" name="L274" href="#L274">274</a>     }
-<a class="jxr_linenumber" name="L275" href="#L275">275</a>     
+<a class="jxr_linenumber" name="L275" href="#L275">275</a> 
 <a class="jxr_linenumber" name="L276" href="#L276">276</a>     @Test
 <a class="jxr_linenumber" name="L277" href="#L277">277</a>     @Retry(3)
 <a class="jxr_linenumber" name="L278" href="#L278">278</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureLongPositiveRange() {
@@ -289,7 +289,7 @@
 <a class="jxr_linenumber" name="L281" href="#L281">281</a>             checkNextSecureLongUniform(2, 12);
 <a class="jxr_linenumber" name="L282" href="#L282">282</a>         }
 <a class="jxr_linenumber" name="L283" href="#L283">283</a>     }
-<a class="jxr_linenumber" name="L284" href="#L284">284</a>     
+<a class="jxr_linenumber" name="L284" href="#L284">284</a> 
 <a class="jxr_linenumber" name="L285" href="#L285">285</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> checkNextSecureLongUniform(<strong class="jxr_keyword">int</strong> min, <strong class="jxr_keyword">int</strong> max) {
 <a class="jxr_linenumber" name="L286" href="#L286">286</a>         <strong class="jxr_keyword">final</strong> Frequency freq = <strong class="jxr_keyword">new</strong> Frequency();
 <a class="jxr_linenumber" name="L287" href="#L287">287</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; smallSampleSize; i++) {
@@ -306,7 +306,7 @@
 <a class="jxr_linenumber" name="L298" href="#L298">298</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; len; i++) {
 <a class="jxr_linenumber" name="L299" href="#L299">299</a>             expected[i] = 1d / len;
 <a class="jxr_linenumber" name="L300" href="#L300">300</a>         }
-<a class="jxr_linenumber" name="L301" href="#L301">301</a>         
+<a class="jxr_linenumber" name="L301" href="#L301">301</a> 
 <a class="jxr_linenumber" name="L302" href="#L302">302</a>         TestUtils.assertChiSquareAccept(expected, observed, 0.0001);
 <a class="jxr_linenumber" name="L303" href="#L303">303</a>     }
 <a class="jxr_linenumber" name="L304" href="#L304">304</a> 
@@ -319,7 +319,7 @@
 <a class="jxr_linenumber" name="L311" href="#L311">311</a>             <em class="jxr_comment">// ignored</em>
 <a class="jxr_linenumber" name="L312" href="#L312">312</a>         }
 <a class="jxr_linenumber" name="L313" href="#L313">313</a>     }
-<a class="jxr_linenumber" name="L314" href="#L314">314</a>     
+<a class="jxr_linenumber" name="L314" href="#L314">314</a> 
 <a class="jxr_linenumber" name="L315" href="#L315">315</a>     @Test
 <a class="jxr_linenumber" name="L316" href="#L316">316</a>     @Retry(3)
 <a class="jxr_linenumber" name="L317" href="#L317">317</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureIntNegativeToPositiveRange() {
@@ -328,7 +328,7 @@
 <a class="jxr_linenumber" name="L320" href="#L320">320</a>             checkNextSecureIntUniform(-3, 6);
 <a class="jxr_linenumber" name="L321" href="#L321">321</a>         }
 <a class="jxr_linenumber" name="L322" href="#L322">322</a>     }
-<a class="jxr_linenumber" name="L323" href="#L323">323</a>     
+<a class="jxr_linenumber" name="L323" href="#L323">323</a> 
 <a class="jxr_linenumber" name="L324" href="#L324">324</a>     @Test
 <a class="jxr_linenumber" name="L325" href="#L325">325</a>     @Retry(3)
 <a class="jxr_linenumber" name="L326" href="#L326">326</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureIntNegativeRange() {
@@ -337,8 +337,8 @@
 <a class="jxr_linenumber" name="L329" href="#L329">329</a>             checkNextSecureIntUniform(-15, -2);
 <a class="jxr_linenumber" name="L330" href="#L330">330</a>         }
 <a class="jxr_linenumber" name="L331" href="#L331">331</a>     }
-<a class="jxr_linenumber" name="L332" href="#L332">332</a>     
-<a class="jxr_linenumber" name="L333" href="#L333">333</a>     @Test 
+<a class="jxr_linenumber" name="L332" href="#L332">332</a> 
+<a class="jxr_linenumber" name="L333" href="#L333">333</a>     @Test
 <a class="jxr_linenumber" name="L334" href="#L334">334</a>     @Retry(3)
 <a class="jxr_linenumber" name="L335" href="#L335">335</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextSecureIntPositiveRange() {
 <a class="jxr_linenumber" name="L336" href="#L336">336</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
@@ -346,7 +346,7 @@
 <a class="jxr_linenumber" name="L338" href="#L338">338</a>             checkNextSecureIntUniform(2, 12);
 <a class="jxr_linenumber" name="L339" href="#L339">339</a>         }
 <a class="jxr_linenumber" name="L340" href="#L340">340</a>     }
-<a class="jxr_linenumber" name="L341" href="#L341">341</a>      
+<a class="jxr_linenumber" name="L341" href="#L341">341</a> 
 <a class="jxr_linenumber" name="L342" href="#L342">342</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> checkNextSecureIntUniform(<strong class="jxr_keyword">int</strong> min, <strong class="jxr_keyword">int</strong> max) {
 <a class="jxr_linenumber" name="L343" href="#L343">343</a>         <strong class="jxr_keyword">final</strong> Frequency freq = <strong class="jxr_keyword">new</strong> Frequency();
 <a class="jxr_linenumber" name="L344" href="#L344">344</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; smallSampleSize; i++) {
@@ -363,11 +363,11 @@
 <a class="jxr_linenumber" name="L355" href="#L355">355</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; len; i++) {
 <a class="jxr_linenumber" name="L356" href="#L356">356</a>             expected[i] = 1d / len;
 <a class="jxr_linenumber" name="L357" href="#L357">357</a>         }
-<a class="jxr_linenumber" name="L358" href="#L358">358</a>         
+<a class="jxr_linenumber" name="L358" href="#L358">358</a> 
 <a class="jxr_linenumber" name="L359" href="#L359">359</a>         TestUtils.assertChiSquareAccept(expected, observed, 0.0001);
 <a class="jxr_linenumber" name="L360" href="#L360">360</a>     }
-<a class="jxr_linenumber" name="L361" href="#L361">361</a>     
-<a class="jxr_linenumber" name="L362" href="#L362">362</a>     
+<a class="jxr_linenumber" name="L361" href="#L361">361</a> 
+<a class="jxr_linenumber" name="L362" href="#L362">362</a> 
 <a class="jxr_linenumber" name="L363" href="#L363">363</a> 
 <a class="jxr_linenumber" name="L364" href="#L364">364</a>     <em class="jxr_javadoccomment">/**</em>
 <a class="jxr_linenumber" name="L365" href="#L365">365</a> <em class="jxr_javadoccomment">     * Make sure that empirical distribution of random Poisson(4)'s has P(X &lt;=</em>
@@ -394,7 +394,7 @@
 <a class="jxr_linenumber" name="L386" href="#L386">386</a>         } <strong class="jxr_keyword">catch</strong> (MathIllegalArgumentException ex) {
 <a class="jxr_linenumber" name="L387" href="#L387">387</a>             <em class="jxr_comment">// ignored</em>
 <a class="jxr_linenumber" name="L388" href="#L388">388</a>         }
-<a class="jxr_linenumber" name="L389" href="#L389">389</a>         
+<a class="jxr_linenumber" name="L389" href="#L389">389</a> 
 <a class="jxr_linenumber" name="L390" href="#L390">390</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> mean = 4.0d;
 <a class="jxr_linenumber" name="L391" href="#L391">391</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> len = 5;
 <a class="jxr_linenumber" name="L392" href="#L392">392</a>         PoissonDistribution poissonDistribution = <strong class="jxr_keyword">new</strong> PoissonDistribution(mean);
@@ -411,7 +411,7 @@
 <a class="jxr_linenumber" name="L403" href="#L403">403</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; len; i++) {
 <a class="jxr_linenumber" name="L404" href="#L404">404</a>             expected[i] = poissonDistribution.probability(i + 1) * largeSampleSize;
 <a class="jxr_linenumber" name="L405" href="#L405">405</a>         }
-<a class="jxr_linenumber" name="L406" href="#L406">406</a>         
+<a class="jxr_linenumber" name="L406" href="#L406">406</a> 
 <a class="jxr_linenumber" name="L407" href="#L407">407</a>         TestUtils.assertChiSquareAccept(expected, observed, 0.0001);
 <a class="jxr_linenumber" name="L408" href="#L408">408</a>     }
 <a class="jxr_linenumber" name="L409" href="#L409">409</a> 
@@ -691,35 +691,35 @@
 <a class="jxr_linenumber" name="L683" href="#L683">683</a>             <em class="jxr_comment">// ignored</em>
 <a class="jxr_linenumber" name="L684" href="#L684">684</a>         }
 <a class="jxr_linenumber" name="L685" href="#L685">685</a>     }
-<a class="jxr_linenumber" name="L686" href="#L686">686</a>     
+<a class="jxr_linenumber" name="L686" href="#L686">686</a> 
 <a class="jxr_linenumber" name="L687" href="#L687">687</a>     @Test
 <a class="jxr_linenumber" name="L688" href="#L688">688</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextUniformUniformPositiveBounds() {
 <a class="jxr_linenumber" name="L689" href="#L689">689</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L690" href="#L690">690</a>             checkNextUniformUniform(0, 10);
 <a class="jxr_linenumber" name="L691" href="#L691">691</a>         }
 <a class="jxr_linenumber" name="L692" href="#L692">692</a>     }
-<a class="jxr_linenumber" name="L693" href="#L693">693</a>     
+<a class="jxr_linenumber" name="L693" href="#L693">693</a> 
 <a class="jxr_linenumber" name="L694" href="#L694">694</a>     @Test
 <a class="jxr_linenumber" name="L695" href="#L695">695</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextUniformUniformNegativeToPositiveBounds() {
 <a class="jxr_linenumber" name="L696" href="#L696">696</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L697" href="#L697">697</a>             checkNextUniformUniform(-3, 5);
 <a class="jxr_linenumber" name="L698" href="#L698">698</a>         }
 <a class="jxr_linenumber" name="L699" href="#L699">699</a>     }
-<a class="jxr_linenumber" name="L700" href="#L700">700</a>     
+<a class="jxr_linenumber" name="L700" href="#L700">700</a> 
 <a class="jxr_linenumber" name="L701" href="#L701">701</a>     @Test
 <a class="jxr_linenumber" name="L702" href="#L702">702</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextUniformUniformNegaiveBounds() {
 <a class="jxr_linenumber" name="L703" href="#L703">703</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L704" href="#L704">704</a>             checkNextUniformUniform(-7, -3);
 <a class="jxr_linenumber" name="L705" href="#L705">705</a>         }
 <a class="jxr_linenumber" name="L706" href="#L706">706</a>     }
-<a class="jxr_linenumber" name="L707" href="#L707">707</a>     
+<a class="jxr_linenumber" name="L707" href="#L707">707</a> 
 <a class="jxr_linenumber" name="L708" href="#L708">708</a>     @Test
 <a class="jxr_linenumber" name="L709" href="#L709">709</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextUniformUniformMaximalInterval() {
 <a class="jxr_linenumber" name="L710" href="#L710">710</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
 <a class="jxr_linenumber" name="L711" href="#L711">711</a>             checkNextUniformUniform(-Double.MAX_VALUE, Double.MAX_VALUE);
 <a class="jxr_linenumber" name="L712" href="#L712">712</a>         }
 <a class="jxr_linenumber" name="L713" href="#L713">713</a>     }
-<a class="jxr_linenumber" name="L714" href="#L714">714</a>     
+<a class="jxr_linenumber" name="L714" href="#L714">714</a> 
 <a class="jxr_linenumber" name="L715" href="#L715">715</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> checkNextUniformUniform(<strong class="jxr_keyword">double</strong> min, <strong class="jxr_keyword">double</strong> max) {
 <a class="jxr_linenumber" name="L716" href="#L716">716</a>         <em class="jxr_comment">// Set up bin bounds - min, binBound[0], ..., binBound[binCount-2], max</em>
 <a class="jxr_linenumber" name="L717" href="#L717">717</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> binCount = 5;
@@ -729,7 +729,7 @@
 <a class="jxr_linenumber" name="L721" href="#L721">721</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 1; i &lt; binCount - 1; i++) {
 <a class="jxr_linenumber" name="L722" href="#L722">722</a>             binBounds[i] = binBounds[i - 1] + binSize;  <em class="jxr_comment">// + instead of * to avoid overflow in extreme case</em>
 <a class="jxr_linenumber" name="L723" href="#L723">723</a>         }
-<a class="jxr_linenumber" name="L724" href="#L724">724</a>         
+<a class="jxr_linenumber" name="L724" href="#L724">724</a> 
 <a class="jxr_linenumber" name="L725" href="#L725">725</a>         <strong class="jxr_keyword">final</strong> Frequency freq = <strong class="jxr_keyword">new</strong> Frequency();
 <a class="jxr_linenumber" name="L726" href="#L726">726</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; smallSampleSize; i++) {
 <a class="jxr_linenumber" name="L727" href="#L727">727</a>             <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> value = randomData.nextUniform(min, max);
@@ -741,7 +741,7 @@
 <a class="jxr_linenumber" name="L733" href="#L733">733</a>             }
 <a class="jxr_linenumber" name="L734" href="#L734">734</a>             freq.addValue(j);
 <a class="jxr_linenumber" name="L735" href="#L735">735</a>         }
-<a class="jxr_linenumber" name="L736" href="#L736">736</a>        
+<a class="jxr_linenumber" name="L736" href="#L736">736</a> 
 <a class="jxr_linenumber" name="L737" href="#L737">737</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong>[] observed = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[binCount];
 <a class="jxr_linenumber" name="L738" href="#L738">738</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; binCount; i++) {
 <a class="jxr_linenumber" name="L739" href="#L739">739</a>             observed[i] = freq.getCount(i);
@@ -750,7 +750,7 @@
 <a class="jxr_linenumber" name="L742" href="#L742">742</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; binCount; i++) {
 <a class="jxr_linenumber" name="L743" href="#L743">743</a>             expected[i] = 1d / binCount;
 <a class="jxr_linenumber" name="L744" href="#L744">744</a>         }
-<a class="jxr_linenumber" name="L745" href="#L745">745</a>         
+<a class="jxr_linenumber" name="L745" href="#L745">745</a> 
 <a class="jxr_linenumber" name="L746" href="#L746">746</a>         TestUtils.assertChiSquareAccept(expected, observed, 0.01);
 <a class="jxr_linenumber" name="L747" href="#L747">747</a>     }
 <a class="jxr_linenumber" name="L748" href="#L748">748</a> 
@@ -959,7 +959,7 @@
 <a class="jxr_linenumber" name="L951" href="#L951">951</a>             <strong class="jxr_keyword">int</strong>[] perm = randomData.nextPermutation(3, 3);
 <a class="jxr_linenumber" name="L952" href="#L952">952</a>             observed[findPerm(p, perm)]++;
 <a class="jxr_linenumber" name="L953" href="#L953">953</a>         }
-<a class="jxr_linenumber" name="L954" href="#L954">954</a>         
+<a class="jxr_linenumber" name="L954" href="#L954">954</a> 
 <a class="jxr_linenumber" name="L955" href="#L955">955</a>         String[] labels = {<span class="jxr_string">"{0, 1, 2}"</span>, <span class="jxr_string">"{ 0, 2, 1 }"</span>, <span class="jxr_string">"{ 1, 0, 2 }"</span>,
 <a class="jxr_linenumber" name="L956" href="#L956">956</a>                 <span class="jxr_string">"{ 1, 2, 0 }"</span>, <span class="jxr_string">"{ 2, 0, 1 }"</span>, <span class="jxr_string">"{ 2, 1, 0 }"</span>};
 <a class="jxr_linenumber" name="L957" href="#L957">957</a>         TestUtils.assertChiSquareAccept(labels, expected, observed, 0.001);
@@ -1018,243 +1018,219 @@
 <a class="jxr_linenumber" name="L1010" href="#L1010">1010</a>     }
 <a class="jxr_linenumber" name="L1011" href="#L1011">1011</a> 
 <a class="jxr_linenumber" name="L1012" href="#L1012">1012</a>     @Test
-<a class="jxr_linenumber" name="L1013" href="#L1013">1013</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextInversionDeviate() {
-<a class="jxr_linenumber" name="L1014" href="#L1014">1014</a>         <em class="jxr_comment">// Set the seed for the default random generator</em>
-<a class="jxr_linenumber" name="L1015" href="#L1015">1015</a>         RandomGenerator rg = <strong class="jxr_keyword">new</strong> Well19937c(100);
-<a class="jxr_linenumber" name="L1016" href="#L1016">1016</a>         RandomDataGenerator rdg = <strong class="jxr_keyword">new</strong> RandomDataGenerator(rg);
-<a class="jxr_linenumber" name="L1017" href="#L1017">1017</a>         <strong class="jxr_keyword">double</strong>[] quantiles = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[10];
-<a class="jxr_linenumber" name="L1018" href="#L1018">1018</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 10; i++) {
-<a class="jxr_linenumber" name="L1019" href="#L1019">1019</a>             quantiles[i] = rdg.nextUniform(0, 1);
+<a class="jxr_linenumber" name="L1013" href="#L1013">1013</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextBeta() {
+<a class="jxr_linenumber" name="L1014" href="#L1014">1014</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> BetaDistribution(2,5));
+<a class="jxr_linenumber" name="L1015" href="#L1015">1015</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
+<a class="jxr_linenumber" name="L1016" href="#L1016">1016</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1017" href="#L1017">1017</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
+<a class="jxr_linenumber" name="L1018" href="#L1018">1018</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextBeta(2, 5);
+<a class="jxr_linenumber" name="L1019" href="#L1019">1019</a>             TestUtils.updateCounts(value, counts, quartiles);
 <a class="jxr_linenumber" name="L1020" href="#L1020">1020</a>         }
-<a class="jxr_linenumber" name="L1021" href="#L1021">1021</a>         <em class="jxr_comment">// Reseed again so the inversion generator gets the same sequence</em>
-<a class="jxr_linenumber" name="L1022" href="#L1022">1022</a>         rg.setSeed(100);
-<a class="jxr_linenumber" name="L1023" href="#L1023">1023</a>         BetaDistribution betaDistribution = <strong class="jxr_keyword">new</strong> BetaDistribution(rg, 2, 4,
-<a class="jxr_linenumber" name="L1024" href="#L1024">1024</a>                                                                  BetaDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
-<a class="jxr_linenumber" name="L1025" href="#L1025">1025</a>         <em class="jxr_comment">/*</em>
-<a class="jxr_linenumber" name="L1026" href="#L1026">1026</a> <em class="jxr_comment">         *  Generate a sequence of deviates using inversion - the distribution function</em>
-<a class="jxr_linenumber" name="L1027" href="#L1027">1027</a> <em class="jxr_comment">         *  evaluated at the random value from the distribution should match the uniform</em>
-<a class="jxr_linenumber" name="L1028" href="#L1028">1028</a> <em class="jxr_comment">         *  random value used to generate it, which is stored in the quantiles[] array.</em>
-<a class="jxr_linenumber" name="L1029" href="#L1029">1029</a> <em class="jxr_comment">         */</em>
-<a class="jxr_linenumber" name="L1030" href="#L1030">1030</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 10; i++) {
-<a class="jxr_linenumber" name="L1031" href="#L1031">1031</a>             <strong class="jxr_keyword">double</strong> value = betaDistribution.sample();
-<a class="jxr_linenumber" name="L1032" href="#L1032">1032</a>             Assert.assertEquals(betaDistribution.cumulativeProbability(value), quantiles[i], 10E-9);
-<a class="jxr_linenumber" name="L1033" href="#L1033">1033</a>         }
+<a class="jxr_linenumber" name="L1021" href="#L1021">1021</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
+<a class="jxr_linenumber" name="L1022" href="#L1022">1022</a>     }
+<a class="jxr_linenumber" name="L1023" href="#L1023">1023</a> 
+<a class="jxr_linenumber" name="L1024" href="#L1024">1024</a>     @Test
+<a class="jxr_linenumber" name="L1025" href="#L1025">1025</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextCauchy() {
+<a class="jxr_linenumber" name="L1026" href="#L1026">1026</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> CauchyDistribution(1.2, 2.1));
+<a class="jxr_linenumber" name="L1027" href="#L1027">1027</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
+<a class="jxr_linenumber" name="L1028" href="#L1028">1028</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1029" href="#L1029">1029</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
+<a class="jxr_linenumber" name="L1030" href="#L1030">1030</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextCauchy(1.2, 2.1);
+<a class="jxr_linenumber" name="L1031" href="#L1031">1031</a>             TestUtils.updateCounts(value, counts, quartiles);
+<a class="jxr_linenumber" name="L1032" href="#L1032">1032</a>         }
+<a class="jxr_linenumber" name="L1033" href="#L1033">1033</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
 <a class="jxr_linenumber" name="L1034" href="#L1034">1034</a>     }
 <a class="jxr_linenumber" name="L1035" href="#L1035">1035</a> 
 <a class="jxr_linenumber" name="L1036" href="#L1036">1036</a>     @Test
-<a class="jxr_linenumber" name="L1037" href="#L1037">1037</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextBeta() {
-<a class="jxr_linenumber" name="L1038" href="#L1038">1038</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> BetaDistribution(2,5));
+<a class="jxr_linenumber" name="L1037" href="#L1037">1037</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextChiSquare() {
+<a class="jxr_linenumber" name="L1038" href="#L1038">1038</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> ChiSquaredDistribution(12));
 <a class="jxr_linenumber" name="L1039" href="#L1039">1039</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
 <a class="jxr_linenumber" name="L1040" href="#L1040">1040</a>         randomData.reSeed(1000);
 <a class="jxr_linenumber" name="L1041" href="#L1041">1041</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1042" href="#L1042">1042</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextBeta(2, 5);
+<a class="jxr_linenumber" name="L1042" href="#L1042">1042</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextChiSquare(12);
 <a class="jxr_linenumber" name="L1043" href="#L1043">1043</a>             TestUtils.updateCounts(value, counts, quartiles);
 <a class="jxr_linenumber" name="L1044" href="#L1044">1044</a>         }
 <a class="jxr_linenumber" name="L1045" href="#L1045">1045</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
 <a class="jxr_linenumber" name="L1046" href="#L1046">1046</a>     }
 <a class="jxr_linenumber" name="L1047" href="#L1047">1047</a> 
 <a class="jxr_linenumber" name="L1048" href="#L1048">1048</a>     @Test
-<a class="jxr_linenumber" name="L1049" href="#L1049">1049</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextCauchy() {
-<a class="jxr_linenumber" name="L1050" href="#L1050">1050</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> CauchyDistribution(1.2, 2.1));
+<a class="jxr_linenumber" name="L1049" href="#L1049">1049</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextF() {
+<a class="jxr_linenumber" name="L1050" href="#L1050">1050</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> FDistribution(12, 5));
 <a class="jxr_linenumber" name="L1051" href="#L1051">1051</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
 <a class="jxr_linenumber" name="L1052" href="#L1052">1052</a>         randomData.reSeed(1000);
 <a class="jxr_linenumber" name="L1053" href="#L1053">1053</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1054" href="#L1054">1054</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextCauchy(1.2, 2.1);
+<a class="jxr_linenumber" name="L1054" href="#L1054">1054</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextF(12, 5);
 <a class="jxr_linenumber" name="L1055" href="#L1055">1055</a>             TestUtils.updateCounts(value, counts, quartiles);
 <a class="jxr_linenumber" name="L1056" href="#L1056">1056</a>         }
 <a class="jxr_linenumber" name="L1057" href="#L1057">1057</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
 <a class="jxr_linenumber" name="L1058" href="#L1058">1058</a>     }
 <a class="jxr_linenumber" name="L1059" href="#L1059">1059</a> 
 <a class="jxr_linenumber" name="L1060" href="#L1060">1060</a>     @Test
-<a class="jxr_linenumber" name="L1061" href="#L1061">1061</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextChiSquare() {
-<a class="jxr_linenumber" name="L1062" href="#L1062">1062</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> ChiSquaredDistribution(12));
-<a class="jxr_linenumber" name="L1063" href="#L1063">1063</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
-<a class="jxr_linenumber" name="L1064" href="#L1064">1064</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1065" href="#L1065">1065</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1066" href="#L1066">1066</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextChiSquare(12);
-<a class="jxr_linenumber" name="L1067" href="#L1067">1067</a>             TestUtils.updateCounts(value, counts, quartiles);
-<a class="jxr_linenumber" name="L1068" href="#L1068">1068</a>         }
-<a class="jxr_linenumber" name="L1069" href="#L1069">1069</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
-<a class="jxr_linenumber" name="L1070" href="#L1070">1070</a>     }
-<a class="jxr_linenumber" name="L1071" href="#L1071">1071</a> 
-<a class="jxr_linenumber" name="L1072" href="#L1072">1072</a>     @Test
-<a class="jxr_linenumber" name="L1073" href="#L1073">1073</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextF() {
-<a class="jxr_linenumber" name="L1074" href="#L1074">1074</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> FDistribution(12, 5));
-<a class="jxr_linenumber" name="L1075" href="#L1075">1075</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
-<a class="jxr_linenumber" name="L1076" href="#L1076">1076</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1077" href="#L1077">1077</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1078" href="#L1078">1078</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextF(12, 5);
-<a class="jxr_linenumber" name="L1079" href="#L1079">1079</a>             TestUtils.updateCounts(value, counts, quartiles);
-<a class="jxr_linenumber" name="L1080" href="#L1080">1080</a>         }
-<a class="jxr_linenumber" name="L1081" href="#L1081">1081</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
-<a class="jxr_linenumber" name="L1082" href="#L1082">1082</a>     }
-<a class="jxr_linenumber" name="L1083" href="#L1083">1083</a> 
-<a class="jxr_linenumber" name="L1084" href="#L1084">1084</a>     @Test
-<a class="jxr_linenumber" name="L1085" href="#L1085">1085</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextGamma() {
-<a class="jxr_linenumber" name="L1086" href="#L1086">1086</a>         <strong class="jxr_keyword">double</strong>[] quartiles;
-<a class="jxr_linenumber" name="L1087" href="#L1087">1087</a>         <strong class="jxr_keyword">long</strong>[] counts;
-<a class="jxr_linenumber" name="L1088" href="#L1088">1088</a> 
-<a class="jxr_linenumber" name="L1089" href="#L1089">1089</a>         <em class="jxr_comment">// Tests shape &gt; 1, one case in the rejection sampling</em>
-<a class="jxr_linenumber" name="L1090" href="#L1090">1090</a>         quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> GammaDistribution(4, 2));
-<a class="jxr_linenumber" name="L1091" href="#L1091">1091</a>         counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
-<a class="jxr_linenumber" name="L1092" href="#L1092">1092</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1093" href="#L1093">1093</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1094" href="#L1094">1094</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextGamma(4, 2);
-<a class="jxr_linenumber" name="L1095" href="#L1095">1095</a>             TestUtils.updateCounts(value, counts, quartiles);
-<a class="jxr_linenumber" name="L1096" href="#L1096">1096</a>         }
-<a class="jxr_linenumber" name="L1097" href="#L1097">1097</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
-<a class="jxr_linenumber" name="L1098" href="#L1098">1098</a> 
-<a class="jxr_linenumber" name="L1099" href="#L1099">1099</a>         <em class="jxr_comment">// Tests shape &lt;= 1, another case in the rejection sampling</em>
-<a class="jxr_linenumber" name="L1100" href="#L1100">1100</a>         quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> GammaDistribution(0.3, 3));
-<a class="jxr_linenumber" name="L1101" href="#L1101">1101</a>         counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
+<a class="jxr_linenumber" name="L1061" href="#L1061">1061</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextGamma() {
+<a class="jxr_linenumber" name="L1062" href="#L1062">1062</a>         <strong class="jxr_keyword">double</strong>[] quartiles;
+<a class="jxr_linenumber" name="L1063" href="#L1063">1063</a>         <strong class="jxr_keyword">long</strong>[] counts;
+<a class="jxr_linenumber" name="L1064" href="#L1064">1064</a> 
+<a class="jxr_linenumber" name="L1065" href="#L1065">1065</a>         <em class="jxr_comment">// Tests shape &gt; 1, one case in the rejection sampling</em>
+<a class="jxr_linenumber" name="L1066" href="#L1066">1066</a>         quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> GammaDistribution(4, 2));
+<a class="jxr_linenumber" name="L1067" href="#L1067">1067</a>         counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
+<a class="jxr_linenumber" name="L1068" href="#L1068">1068</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1069" href="#L1069">1069</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
+<a class="jxr_linenumber" name="L1070" href="#L1070">1070</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextGamma(4, 2);
+<a class="jxr_linenumber" name="L1071" href="#L1071">1071</a>             TestUtils.updateCounts(value, counts, quartiles);
+<a class="jxr_linenumber" name="L1072" href="#L1072">1072</a>         }
+<a class="jxr_linenumber" name="L1073" href="#L1073">1073</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
+<a class="jxr_linenumber" name="L1074" href="#L1074">1074</a> 
+<a class="jxr_linenumber" name="L1075" href="#L1075">1075</a>         <em class="jxr_comment">// Tests shape &lt;= 1, another case in the rejection sampling</em>
+<a class="jxr_linenumber" name="L1076" href="#L1076">1076</a>         quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> GammaDistribution(0.3, 3));
+<a class="jxr_linenumber" name="L1077" href="#L1077">1077</a>         counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
+<a class="jxr_linenumber" name="L1078" href="#L1078">1078</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1079" href="#L1079">1079</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
+<a class="jxr_linenumber" name="L1080" href="#L1080">1080</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextGamma(0.3, 3);
+<a class="jxr_linenumber" name="L1081" href="#L1081">1081</a>             TestUtils.updateCounts(value, counts, quartiles);
+<a class="jxr_linenumber" name="L1082" href="#L1082">1082</a>         }
+<a class="jxr_linenumber" name="L1083" href="#L1083">1083</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
+<a class="jxr_linenumber" name="L1084" href="#L1084">1084</a>     }
+<a class="jxr_linenumber" name="L1085" href="#L1085">1085</a> 
+<a class="jxr_linenumber" name="L1086" href="#L1086">1086</a>     @Test
+<a class="jxr_linenumber" name="L1087" href="#L1087">1087</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextT() {
+<a class="jxr_linenumber" name="L1088" href="#L1088">1088</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> TDistribution(10));
+<a class="jxr_linenumber" name="L1089" href="#L1089">1089</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
+<a class="jxr_linenumber" name="L1090" href="#L1090">1090</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1091" href="#L1091">1091</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
+<a class="jxr_linenumber" name="L1092" href="#L1092">1092</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextT(10);
+<a class="jxr_linenumber" name="L1093" href="#L1093">1093</a>             TestUtils.updateCounts(value, counts, quartiles);
+<a class="jxr_linenumber" name="L1094" href="#L1094">1094</a>         }
+<a class="jxr_linenumber" name="L1095" href="#L1095">1095</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
+<a class="jxr_linenumber" name="L1096" href="#L1096">1096</a>     }
+<a class="jxr_linenumber" name="L1097" href="#L1097">1097</a> 
+<a class="jxr_linenumber" name="L1098" href="#L1098">1098</a>     @Test
+<a class="jxr_linenumber" name="L1099" href="#L1099">1099</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextWeibull() {
+<a class="jxr_linenumber" name="L1100" href="#L1100">1100</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> WeibullDistribution(1.2, 2.1));
+<a class="jxr_linenumber" name="L1101" href="#L1101">1101</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
 <a class="jxr_linenumber" name="L1102" href="#L1102">1102</a>         randomData.reSeed(1000);
 <a class="jxr_linenumber" name="L1103" href="#L1103">1103</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1104" href="#L1104">1104</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextGamma(0.3, 3);
+<a class="jxr_linenumber" name="L1104" href="#L1104">1104</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextWeibull(1.2, 2.1);
 <a class="jxr_linenumber" name="L1105" href="#L1105">1105</a>             TestUtils.updateCounts(value, counts, quartiles);
 <a class="jxr_linenumber" name="L1106" href="#L1106">1106</a>         }
 <a class="jxr_linenumber" name="L1107" href="#L1107">1107</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
 <a class="jxr_linenumber" name="L1108" href="#L1108">1108</a>     }
 <a class="jxr_linenumber" name="L1109" href="#L1109">1109</a> 
 <a class="jxr_linenumber" name="L1110" href="#L1110">1110</a>     @Test
-<a class="jxr_linenumber" name="L1111" href="#L1111">1111</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextT() {
-<a class="jxr_linenumber" name="L1112" href="#L1112">1112</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> TDistribution(10));
-<a class="jxr_linenumber" name="L1113" href="#L1113">1113</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
-<a class="jxr_linenumber" name="L1114" href="#L1114">1114</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1115" href="#L1115">1115</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1116" href="#L1116">1116</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextT(10);
-<a class="jxr_linenumber" name="L1117" href="#L1117">1117</a>             TestUtils.updateCounts(value, counts, quartiles);
-<a class="jxr_linenumber" name="L1118" href="#L1118">1118</a>         }
-<a class="jxr_linenumber" name="L1119" href="#L1119">1119</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
-<a class="jxr_linenumber" name="L1120" href="#L1120">1120</a>     }
-<a class="jxr_linenumber" name="L1121" href="#L1121">1121</a> 
-<a class="jxr_linenumber" name="L1122" href="#L1122">1122</a>     @Test
-<a class="jxr_linenumber" name="L1123" href="#L1123">1123</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextWeibull() {
-<a class="jxr_linenumber" name="L1124" href="#L1124">1124</a>         <strong class="jxr_keyword">double</strong>[] quartiles = TestUtils.getDistributionQuartiles(<strong class="jxr_keyword">new</strong> WeibullDistribution(1.2, 2.1));
-<a class="jxr_linenumber" name="L1125" href="#L1125">1125</a>         <strong class="jxr_keyword">long</strong>[] counts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[4];
-<a class="jxr_linenumber" name="L1126" href="#L1126">1126</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1127" href="#L1127">1127</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 1000; i++) {
-<a class="jxr_linenumber" name="L1128" href="#L1128">1128</a>             <strong class="jxr_keyword">double</strong> value = randomData.nextWeibull(1.2, 2.1);
-<a class="jxr_linenumber" name="L1129" href="#L1129">1129</a>             TestUtils.updateCounts(value, counts, quartiles);
-<a class="jxr_linenumber" name="L1130" href="#L1130">1130</a>         }
-<a class="jxr_linenumber" name="L1131" href="#L1131">1131</a>         TestUtils.assertChiSquareAccept(expected, counts, 0.001);
-<a class="jxr_linenumber" name="L1132" href="#L1132">1132</a>     }
-<a class="jxr_linenumber" name="L1133" href="#L1133">1133</a> 
-<a class="jxr_linenumber" name="L1134" href="#L1134">1134</a>     @Test
-<a class="jxr_linenumber" name="L1135" href="#L1135">1135</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextBinomial() {
-<a class="jxr_linenumber" name="L1136" href="#L1136">1136</a>         <a href="../../../../../org/apache/commons/math3/distribution/BinomialDistributionTest.html">BinomialDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/BinomialDistributionTest.html">BinomialDistributionTest</a>();
-<a class="jxr_linenumber" name="L1137" href="#L1137">1137</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
-<a class="jxr_linenumber" name="L1138" href="#L1138">1138</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
-<a class="jxr_linenumber" name="L1139" href="#L1139">1139</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
-<a class="jxr_linenumber" name="L1140" href="#L1140">1140</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
-<a class="jxr_linenumber" name="L1141" href="#L1141">1141</a>         BinomialDistribution distribution = (BinomialDistribution) testInstance.makeDistribution();
-<a class="jxr_linenumber" name="L1142" href="#L1142">1142</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
-<a class="jxr_linenumber" name="L1143" href="#L1143">1143</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
-<a class="jxr_linenumber" name="L1144" href="#L1144">1144</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
-<a class="jxr_linenumber" name="L1145" href="#L1145">1145</a>             expectedCounts[i] = sampleSize * densityValues[i];
-<a class="jxr_linenumber" name="L1146" href="#L1146">1146</a>         }
-<a class="jxr_linenumber" name="L1147" href="#L1147">1147</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1148" href="#L1148">1148</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
-<a class="jxr_linenumber" name="L1149" href="#L1149">1149</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextBinomial(distribution.getNumberOfTrials(),
-<a class="jxr_linenumber" name="L1150" href="#L1150">1150</a>                   distribution.getProbabilityOfSuccess());
-<a class="jxr_linenumber" name="L1151" href="#L1151">1151</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
-<a class="jxr_linenumber" name="L1152" href="#L1152">1152</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
-<a class="jxr_linenumber" name="L1153" href="#L1153">1153</a>                   observedCounts[j]++;
-<a class="jxr_linenumber" name="L1154" href="#L1154">1154</a>               }
-<a class="jxr_linenumber" name="L1155" href="#L1155">1155</a>           }
-<a class="jxr_linenumber" name="L1156" href="#L1156">1156</a>         }
-<a class="jxr_linenumber" name="L1157" href="#L1157">1157</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
-<a class="jxr_linenumber" name="L1158" href="#L1158">1158</a>     }
-<a class="jxr_linenumber" name="L1159" href="#L1159">1159</a> 
-<a class="jxr_linenumber" name="L1160" href="#L1160">1160</a>     @Test
-<a class="jxr_linenumber" name="L1161" href="#L1161">1161</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextHypergeometric() {
-<a class="jxr_linenumber" name="L1162" href="#L1162">1162</a>         <a href="../../../../../org/apache/commons/math3/distribution/HypergeometricDistributionTest.html">HypergeometricDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/HypergeometricDistributionTest.html">HypergeometricDistributionTest</a>();
-<a class="jxr_linenumber" name="L1163" href="#L1163">1163</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
-<a class="jxr_linenumber" name="L1164" href="#L1164">1164</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
-<a class="jxr_linenumber" name="L1165" href="#L1165">1165</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
-<a class="jxr_linenumber" name="L1166" href="#L1166">1166</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
-<a class="jxr_linenumber" name="L1167" href="#L1167">1167</a>         HypergeometricDistribution distribution = (HypergeometricDistribution) testInstance.makeDistribution();
-<a class="jxr_linenumber" name="L1168" href="#L1168">1168</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
-<a class="jxr_linenumber" name="L1169" href="#L1169">1169</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
-<a class="jxr_linenumber" name="L1170" href="#L1170">1170</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
-<a class="jxr_linenumber" name="L1171" href="#L1171">1171</a>             expectedCounts[i] = sampleSize * densityValues[i];
-<a class="jxr_linenumber" name="L1172" href="#L1172">1172</a>         }
-<a class="jxr_linenumber" name="L1173" href="#L1173">1173</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1174" href="#L1174">1174</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
-<a class="jxr_linenumber" name="L1175" href="#L1175">1175</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextHypergeometric(distribution.getPopulationSize(),
-<a class="jxr_linenumber" name="L1176" href="#L1176">1176</a>                   distribution.getNumberOfSuccesses(), distribution.getSampleSize());
-<a class="jxr_linenumber" name="L1177" href="#L1177">1177</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
-<a class="jxr_linenumber" name="L1178" href="#L1178">1178</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
-<a class="jxr_linenumber" name="L1179" href="#L1179">1179</a>                   observedCounts[j]++;
-<a class="jxr_linenumber" name="L1180" href="#L1180">1180</a>               }
-<a class="jxr_linenumber" name="L1181" href="#L1181">1181</a>           }
-<a class="jxr_linenumber" name="L1182" href="#L1182">1182</a>         }
-<a class="jxr_linenumber" name="L1183" href="#L1183">1183</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
-<a class="jxr_linenumber" name="L1184" href="#L1184">1184</a>     }
-<a class="jxr_linenumber" name="L1185" href="#L1185">1185</a> 
-<a class="jxr_linenumber" name="L1186" href="#L1186">1186</a>     @Test
-<a class="jxr_linenumber" name="L1187" href="#L1187">1187</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextPascal() {
-<a class="jxr_linenumber" name="L1188" href="#L1188">1188</a>         <a href="../../../../../org/apache/commons/math3/distribution/PascalDistributionTest.html">PascalDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/PascalDistributionTest.html">PascalDistributionTest</a>();
-<a class="jxr_linenumber" name="L1189" href="#L1189">1189</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
-<a class="jxr_linenumber" name="L1190" href="#L1190">1190</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
-<a class="jxr_linenumber" name="L1191" href="#L1191">1191</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
-<a class="jxr_linenumber" name="L1192" href="#L1192">1192</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
-<a class="jxr_linenumber" name="L1193" href="#L1193">1193</a>         PascalDistribution distribution = (PascalDistribution) testInstance.makeDistribution();
-<a class="jxr_linenumber" name="L1194" href="#L1194">1194</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
-<a class="jxr_linenumber" name="L1195" href="#L1195">1195</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
-<a class="jxr_linenumber" name="L1196" href="#L1196">1196</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
-<a class="jxr_linenumber" name="L1197" href="#L1197">1197</a>             expectedCounts[i] = sampleSize * densityValues[i];
-<a class="jxr_linenumber" name="L1198" href="#L1198">1198</a>         }
-<a class="jxr_linenumber" name="L1199" href="#L1199">1199</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1200" href="#L1200">1200</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
-<a class="jxr_linenumber" name="L1201" href="#L1201">1201</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextPascal(distribution.getNumberOfSuccesses(), distribution.getProbabilityOfSuccess());
-<a class="jxr_linenumber" name="L1202" href="#L1202">1202</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
-<a class="jxr_linenumber" name="L1203" href="#L1203">1203</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
-<a class="jxr_linenumber" name="L1204" href="#L1204">1204</a>                   observedCounts[j]++;
-<a class="jxr_linenumber" name="L1205" href="#L1205">1205</a>               }
-<a class="jxr_linenumber" name="L1206" href="#L1206">1206</a>           }
-<a class="jxr_linenumber" name="L1207" href="#L1207">1207</a>         }
-<a class="jxr_linenumber" name="L1208" href="#L1208">1208</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
-<a class="jxr_linenumber" name="L1209" href="#L1209">1209</a>     }
-<a class="jxr_linenumber" name="L1210" href="#L1210">1210</a> 
-<a class="jxr_linenumber" name="L1211" href="#L1211">1211</a>     @Test
-<a class="jxr_linenumber" name="L1212" href="#L1212">1212</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextZipf() {
-<a class="jxr_linenumber" name="L1213" href="#L1213">1213</a>         <a href="../../../../../org/apache/commons/math3/distribution/ZipfDistributionTest.html">ZipfDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/ZipfDistributionTest.html">ZipfDistributionTest</a>();
-<a class="jxr_linenumber" name="L1214" href="#L1214">1214</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
-<a class="jxr_linenumber" name="L1215" href="#L1215">1215</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
-<a class="jxr_linenumber" name="L1216" href="#L1216">1216</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
-<a class="jxr_linenumber" name="L1217" href="#L1217">1217</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
-<a class="jxr_linenumber" name="L1218" href="#L1218">1218</a>         ZipfDistribution distribution = (ZipfDistribution) testInstance.makeDistribution();
-<a class="jxr_linenumber" name="L1219" href="#L1219">1219</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
-<a class="jxr_linenumber" name="L1220" href="#L1220">1220</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
-<a class="jxr_linenumber" name="L1221" href="#L1221">1221</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
-<a class="jxr_linenumber" name="L1222" href="#L1222">1222</a>             expectedCounts[i] = sampleSize * densityValues[i];
-<a class="jxr_linenumber" name="L1223" href="#L1223">1223</a>         }
-<a class="jxr_linenumber" name="L1224" href="#L1224">1224</a>         randomData.reSeed(1000);
-<a class="jxr_linenumber" name="L1225" href="#L1225">1225</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
-<a class="jxr_linenumber" name="L1226" href="#L1226">1226</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextZipf(distribution.getNumberOfElements(), distribution.getExponent());
-<a class="jxr_linenumber" name="L1227" href="#L1227">1227</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
-<a class="jxr_linenumber" name="L1228" href="#L1228">1228</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
-<a class="jxr_linenumber" name="L1229" href="#L1229">1229</a>                   observedCounts[j]++;
-<a class="jxr_linenumber" name="L1230" href="#L1230">1230</a>               }
-<a class="jxr_linenumber" name="L1231" href="#L1231">1231</a>           }
-<a class="jxr_linenumber" name="L1232" href="#L1232">1232</a>         }
-<a class="jxr_linenumber" name="L1233" href="#L1233">1233</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
-<a class="jxr_linenumber" name="L1234" href="#L1234">1234</a>     }
-<a class="jxr_linenumber" name="L1235" href="#L1235">1235</a> 
-<a class="jxr_linenumber" name="L1236" href="#L1236">1236</a>     @Test
-<a class="jxr_linenumber" name="L1237" href="#L1237">1237</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L1238" href="#L1238">1238</a> <em class="jxr_javadoccomment">     * MATH-720</em>
-<a class="jxr_linenumber" name="L1239" href="#L1239">1239</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1240" href="#L1240">1240</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReseed() {
-<a class="jxr_linenumber" name="L1241" href="#L1241">1241</a>         PoissonDistribution x = <strong class="jxr_keyword">new</strong> PoissonDistribution(3.0);
-<a class="jxr_linenumber" name="L1242" href="#L1242">1242</a>         x.reseedRandomGenerator(0);
-<a class="jxr_linenumber" name="L1243" href="#L1243">1243</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> u = x.sample();
-<a class="jxr_linenumber" name="L1244" href="#L1244">1244</a>         PoissonDistribution y = <strong class="jxr_keyword">new</strong> PoissonDistribution(3.0);
-<a class="jxr_linenumber" name="L1245" href="#L1245">1245</a>         y.reseedRandomGenerator(0);
-<a class="jxr_linenumber" name="L1246" href="#L1246">1246</a>         Assert.assertEquals(u, y.sample(), 0);
-<a class="jxr_linenumber" name="L1247" href="#L1247">1247</a>     }
-<a class="jxr_linenumber" name="L1248" href="#L1248">1248</a> 
-<a class="jxr_linenumber" name="L1249" href="#L1249">1249</a> }
+<a class="jxr_linenumber" name="L1111" href="#L1111">1111</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextBinomial() {
+<a class="jxr_linenumber" name="L1112" href="#L1112">1112</a>         <a href="../../../../../org/apache/commons/math3/distribution/BinomialDistributionTest.html">BinomialDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/BinomialDistributionTest.html">BinomialDistributionTest</a>();
+<a class="jxr_linenumber" name="L1113" href="#L1113">1113</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
+<a class="jxr_linenumber" name="L1114" href="#L1114">1114</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
+<a class="jxr_linenumber" name="L1115" href="#L1115">1115</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
+<a class="jxr_linenumber" name="L1116" href="#L1116">1116</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
+<a class="jxr_linenumber" name="L1117" href="#L1117">1117</a>         BinomialDistribution distribution = (BinomialDistribution) testInstance.makeDistribution();
+<a class="jxr_linenumber" name="L1118" href="#L1118">1118</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
+<a class="jxr_linenumber" name="L1119" href="#L1119">1119</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
+<a class="jxr_linenumber" name="L1120" href="#L1120">1120</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
+<a class="jxr_linenumber" name="L1121" href="#L1121">1121</a>             expectedCounts[i] = sampleSize * densityValues[i];
+<a class="jxr_linenumber" name="L1122" href="#L1122">1122</a>         }
+<a class="jxr_linenumber" name="L1123" href="#L1123">1123</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1124" href="#L1124">1124</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
+<a class="jxr_linenumber" name="L1125" href="#L1125">1125</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextBinomial(distribution.getNumberOfTrials(),
+<a class="jxr_linenumber" name="L1126" href="#L1126">1126</a>                   distribution.getProbabilityOfSuccess());
+<a class="jxr_linenumber" name="L1127" href="#L1127">1127</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
+<a class="jxr_linenumber" name="L1128" href="#L1128">1128</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
+<a class="jxr_linenumber" name="L1129" href="#L1129">1129</a>                   observedCounts[j]++;
+<a class="jxr_linenumber" name="L1130" href="#L1130">1130</a>               }
+<a class="jxr_linenumber" name="L1131" href="#L1131">1131</a>           }
+<a class="jxr_linenumber" name="L1132" href="#L1132">1132</a>         }
+<a class="jxr_linenumber" name="L1133" href="#L1133">1133</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
+<a class="jxr_linenumber" name="L1134" href="#L1134">1134</a>     }
+<a class="jxr_linenumber" name="L1135" href="#L1135">1135</a> 
+<a class="jxr_linenumber" name="L1136" href="#L1136">1136</a>     @Test
+<a class="jxr_linenumber" name="L1137" href="#L1137">1137</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextHypergeometric() {
+<a class="jxr_linenumber" name="L1138" href="#L1138">1138</a>         <a href="../../../../../org/apache/commons/math3/distribution/HypergeometricDistributionTest.html">HypergeometricDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/HypergeometricDistributionTest.html">HypergeometricDistributionTest</a>();
+<a class="jxr_linenumber" name="L1139" href="#L1139">1139</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
+<a class="jxr_linenumber" name="L1140" href="#L1140">1140</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
+<a class="jxr_linenumber" name="L1141" href="#L1141">1141</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
+<a class="jxr_linenumber" name="L1142" href="#L1142">1142</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
+<a class="jxr_linenumber" name="L1143" href="#L1143">1143</a>         HypergeometricDistribution distribution = (HypergeometricDistribution) testInstance.makeDistribution();
+<a class="jxr_linenumber" name="L1144" href="#L1144">1144</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
+<a class="jxr_linenumber" name="L1145" href="#L1145">1145</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
+<a class="jxr_linenumber" name="L1146" href="#L1146">1146</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
+<a class="jxr_linenumber" name="L1147" href="#L1147">1147</a>             expectedCounts[i] = sampleSize * densityValues[i];
+<a class="jxr_linenumber" name="L1148" href="#L1148">1148</a>         }
+<a class="jxr_linenumber" name="L1149" href="#L1149">1149</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1150" href="#L1150">1150</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
+<a class="jxr_linenumber" name="L1151" href="#L1151">1151</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextHypergeometric(distribution.getPopulationSize(),
+<a class="jxr_linenumber" name="L1152" href="#L1152">1152</a>                   distribution.getNumberOfSuccesses(), distribution.getSampleSize());
+<a class="jxr_linenumber" name="L1153" href="#L1153">1153</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
+<a class="jxr_linenumber" name="L1154" href="#L1154">1154</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
+<a class="jxr_linenumber" name="L1155" href="#L1155">1155</a>                   observedCounts[j]++;
+<a class="jxr_linenumber" name="L1156" href="#L1156">1156</a>               }
+<a class="jxr_linenumber" name="L1157" href="#L1157">1157</a>           }
+<a class="jxr_linenumber" name="L1158" href="#L1158">1158</a>         }
+<a class="jxr_linenumber" name="L1159" href="#L1159">1159</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
+<a class="jxr_linenumber" name="L1160" href="#L1160">1160</a>     }
+<a class="jxr_linenumber" name="L1161" href="#L1161">1161</a> 
+<a class="jxr_linenumber" name="L1162" href="#L1162">1162</a>     @Test
+<a class="jxr_linenumber" name="L1163" href="#L1163">1163</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextPascal() {
+<a class="jxr_linenumber" name="L1164" href="#L1164">1164</a>         <a href="../../../../../org/apache/commons/math3/distribution/PascalDistributionTest.html">PascalDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/PascalDistributionTest.html">PascalDistributionTest</a>();
+<a class="jxr_linenumber" name="L1165" href="#L1165">1165</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
+<a class="jxr_linenumber" name="L1166" href="#L1166">1166</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
+<a class="jxr_linenumber" name="L1167" href="#L1167">1167</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
+<a class="jxr_linenumber" name="L1168" href="#L1168">1168</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
+<a class="jxr_linenumber" name="L1169" href="#L1169">1169</a>         PascalDistribution distribution = (PascalDistribution) testInstance.makeDistribution();
+<a class="jxr_linenumber" name="L1170" href="#L1170">1170</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
+<a class="jxr_linenumber" name="L1171" href="#L1171">1171</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
+<a class="jxr_linenumber" name="L1172" href="#L1172">1172</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
+<a class="jxr_linenumber" name="L1173" href="#L1173">1173</a>             expectedCounts[i] = sampleSize * densityValues[i];
+<a class="jxr_linenumber" name="L1174" href="#L1174">1174</a>         }
+<a class="jxr_linenumber" name="L1175" href="#L1175">1175</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1176" href="#L1176">1176</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
+<a class="jxr_linenumber" name="L1177" href="#L1177">1177</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextPascal(distribution.getNumberOfSuccesses(), distribution.getProbabilityOfSuccess());
+<a class="jxr_linenumber" name="L1178" href="#L1178">1178</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
+<a class="jxr_linenumber" name="L1179" href="#L1179">1179</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
+<a class="jxr_linenumber" name="L1180" href="#L1180">1180</a>                   observedCounts[j]++;
+<a class="jxr_linenumber" name="L1181" href="#L1181">1181</a>               }
+<a class="jxr_linenumber" name="L1182" href="#L1182">1182</a>           }
+<a class="jxr_linenumber" name="L1183" href="#L1183">1183</a>         }
+<a class="jxr_linenumber" name="L1184" href="#L1184">1184</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
+<a class="jxr_linenumber" name="L1185" href="#L1185">1185</a>     }
+<a class="jxr_linenumber" name="L1186" href="#L1186">1186</a> 
+<a class="jxr_linenumber" name="L1187" href="#L1187">1187</a>     @Test
+<a class="jxr_linenumber" name="L1188" href="#L1188">1188</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNextZipf() {
+<a class="jxr_linenumber" name="L1189" href="#L1189">1189</a>         <a href="../../../../../org/apache/commons/math3/distribution/ZipfDistributionTest.html">ZipfDistributionTest</a> testInstance = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/distribution/ZipfDistributionTest.html">ZipfDistributionTest</a>();
+<a class="jxr_linenumber" name="L1190" href="#L1190">1190</a>         <strong class="jxr_keyword">int</strong>[] densityPoints = testInstance.makeDensityTestPoints();
+<a class="jxr_linenumber" name="L1191" href="#L1191">1191</a>         <strong class="jxr_keyword">double</strong>[] densityValues = testInstance.makeDensityTestValues();
+<a class="jxr_linenumber" name="L1192" href="#L1192">1192</a>         <strong class="jxr_keyword">int</strong> sampleSize = 1000;
+<a class="jxr_linenumber" name="L1193" href="#L1193">1193</a>         <strong class="jxr_keyword">int</strong> length = TestUtils.eliminateZeroMassPoints(densityPoints, densityValues);
+<a class="jxr_linenumber" name="L1194" href="#L1194">1194</a>         ZipfDistribution distribution = (ZipfDistribution) testInstance.makeDistribution();
+<a class="jxr_linenumber" name="L1195" href="#L1195">1195</a>         <strong class="jxr_keyword">double</strong>[] expectedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">double</strong>[length];
+<a class="jxr_linenumber" name="L1196" href="#L1196">1196</a>         <strong class="jxr_keyword">long</strong>[] observedCounts = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">long</strong>[length];
+<a class="jxr_linenumber" name="L1197" href="#L1197">1197</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; length; i++) {
+<a class="jxr_linenumber" name="L1198" href="#L1198">1198</a>             expectedCounts[i] = sampleSize * densityValues[i];
+<a class="jxr_linenumber" name="L1199" href="#L1199">1199</a>         }
+<a class="jxr_linenumber" name="L1200" href="#L1200">1200</a>         randomData.reSeed(1000);
+<a class="jxr_linenumber" name="L1201" href="#L1201">1201</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; sampleSize; i++) {
+<a class="jxr_linenumber" name="L1202" href="#L1202">1202</a>           <strong class="jxr_keyword">int</strong> value = randomData.nextZipf(distribution.getNumberOfElements(), distribution.getExponent());
+<a class="jxr_linenumber" name="L1203" href="#L1203">1203</a>           <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = 0; j &lt; length; j++) {
+<a class="jxr_linenumber" name="L1204" href="#L1204">1204</a>               <strong class="jxr_keyword">if</strong> (value == densityPoints[j]) {
+<a class="jxr_linenumber" name="L1205" href="#L1205">1205</a>                   observedCounts[j]++;
+<a class="jxr_linenumber" name="L1206" href="#L1206">1206</a>               }
+<a class="jxr_linenumber" name="L1207" href="#L1207">1207</a>           }
+<a class="jxr_linenumber" name="L1208" href="#L1208">1208</a>         }
+<a class="jxr_linenumber" name="L1209" href="#L1209">1209</a>         TestUtils.assertChiSquareAccept(densityPoints, expectedCounts, observedCounts, .001);
+<a class="jxr_linenumber" name="L1210" href="#L1210">1210</a>     }
+<a class="jxr_linenumber" name="L1211" href="#L1211">1211</a> 
+<a class="jxr_linenumber" name="L1212" href="#L1212">1212</a>     @Test
+<a class="jxr_linenumber" name="L1213" href="#L1213">1213</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L1214" href="#L1214">1214</a> <em class="jxr_javadoccomment">     * MATH-720</em>
+<a class="jxr_linenumber" name="L1215" href="#L1215">1215</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L1216" href="#L1216">1216</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReseed() {
+<a class="jxr_linenumber" name="L1217" href="#L1217">1217</a>         PoissonDistribution x = <strong class="jxr_keyword">new</strong> PoissonDistribution(3.0);
+<a class="jxr_linenumber" name="L1218" href="#L1218">1218</a>         x.reseedRandomGenerator(0);
+<a class="jxr_linenumber" name="L1219" href="#L1219">1219</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">double</strong> u = x.sample();
+<a class="jxr_linenumber" name="L1220" href="#L1220">1220</a>         PoissonDistribution y = <strong class="jxr_keyword">new</strong> PoissonDistribution(3.0);
+<a class="jxr_linenumber" name="L1221" href="#L1221">1221</a>         y.reseedRandomGenerator(0);
+<a class="jxr_linenumber" name="L1222" href="#L1222">1222</a>         Assert.assertEquals(u, y.sample(), 0);
+<a class="jxr_linenumber" name="L1223" href="#L1223">1223</a>     }
+<a class="jxr_linenumber" name="L1224" href="#L1224">1224</a> 
+<a class="jxr_linenumber" name="L1225" href="#L1225">1225</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2003&#x2013;2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>



Mime
View raw message