http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/18/18e36c467624cc84b8b988609f08828af064d566.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/18/18e36c467624cc84b8b988609f08828af064d566.svn-base b/commons-rng-core/site-content/.svn/pristine/18/18e36c467624cc84b8b988609f08828af064d566.svn-base new file mode 100644 index 0000000..c48e8b6 Binary files /dev/null and b/commons-rng-core/site-content/.svn/pristine/18/18e36c467624cc84b8b988609f08828af064d566.svn-base differ
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/19/190796c829a2b129b512c35349e0bb1bb44a8c07.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/19/190796c829a2b129b512c35349e0bb1bb44a8c07.svn-base b/commons-rng-core/site-content/.svn/pristine/19/190796c829a2b129b512c35349e0bb1bb44a8c07.svn-base new file mode 100644 index 0000000..f80fa38 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/19/190796c829a2b129b512c35349e0bb1bb44a8c07.svn-base @@ -0,0 +1,50 @@ +<!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>LongArray2IntArray xref</title> +<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/internal/util/LongArray2IntArray.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.internal.util; +<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"> * Creates an {@code int[]} from a {@code long[]}.</em> +<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"> * @since 1.0</em> +<a class="jxr_linenumber" name="L23" href="#L23">23</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/internal/util/LongArray2IntArray.html">LongArray2IntArray</a> <strong class="jxr_keyword">implements</strong> SeedConverter<<strong class="jxr_keyword">long</strong>[], <strong class="jxr_keyword">int</strong>[]> { +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <em class="jxr_javadoccomment">/** {@inheritDoc} */</em> +<a class="jxr_linenumber" name="L26" href="#L26">26</a> @Override +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong>[] convert(<strong class="jxr_keyword">long</strong>[] seed) { +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>[] out = <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">int</strong>[seed.length * 2]; +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < seed.length; i++) { +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> current = seed[i]; +<a class="jxr_linenumber" name="L31" href="#L31">31</a> out[i] = NumberFactory.extractLo(current); +<a class="jxr_linenumber" name="L32" href="#L32">32</a> out[seed.length + i] = NumberFactory.extractHi(current); +<a class="jxr_linenumber" name="L33" href="#L33">33</a> } +<a class="jxr_linenumber" name="L34" href="#L34">34</a> +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">return</strong> out; +<a class="jxr_linenumber" name="L36" href="#L36">36</a> } +<a class="jxr_linenumber" name="L37" href="#L37">37</a> } +</pre> +<hr/> +<div id="footer">Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/19/19263de8361bd29f130a1c04e7120e1f82ac1215.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/19/19263de8361bd29f130a1c04e7120e1f82ac1215.svn-base b/commons-rng-core/site-content/.svn/pristine/19/19263de8361bd29f130a1c04e7120e1f82ac1215.svn-base new file mode 100644 index 0000000..ac6ad6a Binary files /dev/null and b/commons-rng-core/site-content/.svn/pristine/19/19263de8361bd29f130a1c04e7120e1f82ac1215.svn-base differ http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1a/1a5d3da9d2c228e9680e5ae9d115ae993a483229.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1a/1a5d3da9d2c228e9680e5ae9d115ae993a483229.svn-base b/commons-rng-core/site-content/.svn/pristine/1a/1a5d3da9d2c228e9680e5ae9d115ae993a483229.svn-base new file mode 100644 index 0000000..f5a7e57 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1a/1a5d3da9d2c228e9680e5ae9d115ae993a483229.svn-base @@ -0,0 +1,310 @@ +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia at 10 September 2016 + | Rendered using Apache Maven Fluido Skin 1.3.0 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="Date-Revision-yyyymmdd" content="20160910" /> + <meta http-equiv="Content-Language" content="en" /> + <title>Rng – Checkstyle Results</title> + + <link rel="stylesheet" href="./css/bootstrap.min.css" type="text/css" /> + <link rel="stylesheet" href="./css/site.css" type="text/css" /> + <link rel="stylesheet" href="./css/print.css" media="print" /> + + <script type="text/javascript" src="./js/jquery.min.js"></script> + <script type="text/javascript" src="./js/bootstrap.min.js"></script> + <script type="text/javascript" src="./js/prettify.min.js"></script> + <script type="text/javascript" src="./js/site.js"></script> + + +<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script> +<link rel="stylesheet" href="./css/prettify.css" media="all" type="text/css"/> + </head> + + <body class="composite"> + <a href="http://commons.apache.org/" id="bannerLeft" title="Apache Commons logo"> + <img class="logo-left" src="./images/commons-logo.png" alt="Apache Commons logo"/> + </a> + <a href="index.html" id="bannerRight"> + <img class="logo-right" src="images/commons_rng.small.png" alt="Commons Rng"/> + </a> + <div class="clear"></div> + + <div class="navbar"> + <div class="navbar-inner"> + <div class="container-fluid"> + <a class="brand" href="http://commons.apache.org/proper/commons-rng/">Apache Commons Rng ™</a> + <ul class="nav"> + + <li id="publishDate">Last Published: 10 September 2016</li> + <li class="divider">|</li> <li id="projectVersion">Version: 1.0-SNAPSHOT</li> + </ul> + <div class="pull-right"> <ul class="nav"> + <li> + <a href="http://www.apachecon.com/" class="externalLink" title="ApacheCon"> + ApacheCon</a> + </li> + <li> + <a href="http://www.apache.org" class="externalLink" title="Apache"> + Apache</a> + </li> + <li> + <a href="../../" title="Commons"> + Commons</a> + </li> + </ul> +</div> + </div> + </div> + </div> + + <div class="container-fluid"> + <table class="layout-table"> + <tr> + <td class="sidebar"> + <div class="well sidebar-nav"> + <ul class="nav nav-list"> + <li class="nav-header">Rng</li> + <li class="none"> + <a href="index.html" title="Overview"> + Overview</a> + </li> + <li class="none"> + <a href="../../rng/download_rng.cgi" title="Downloads"> + Downloads</a> + </li> + <li class="none"> + <a href="apidocs/index.html" title="Latest API docs (development)"> + Latest API docs (development)</a> + </li> + <li class="none"> + <a href="../../rng/javadocs/api-1.0/index.html" title="Javadoc (1.0 release)"> + Javadoc (1.0 release)</a> + </li> + <li class="none"> + <a href="issue-tracking.html" title="Issue Tracking"> + Issue Tracking</a> + </li> + <li class="none"> + <a href="http://git-wip-us.apache.org/repos/asf/commons-rng.git" class="externalLink" title="Source Repository (current)"> + Source Repository (current)</a> + </li> + <li class="none"> + <a href="developers.html" title="Developers Guide"> + Developers Guide</a> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header"><i class="icon-book"></i>User Guide</li> + <li class="none"> + <a href="userguide/index.html" title="Contents"> + Contents</a> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header"><i class="icon-info-sign"></i>Project Documentation</li> + <li class="collapsed"> + <a href="project-info.html" title="Project Information"> + Project Information</a> + </li> + <li class="expanded"> + <a href="project-reports.html" title="Project Reports"> + Project Reports</a> + <ul> + <li class="none"> + <a href="changes-report.html" title="Changes"> + Changes</a> + </li> + <li class="none"> + <a href="jira-report.html" title="JIRA Report"> + JIRA Report</a> + </li> + <li class="none"> + <a href="apidocs/index.html" title="JavaDocs"> + JavaDocs</a> + </li> + <li class="none"> + <a href="xref/index.html" title="Source Xref"> + Source Xref</a> + </li> + <li class="none"> + <a href="xref-test/index.html" title="Test Source Xref"> + Test Source Xref</a> + </li> + <li class="none"> + <a href="surefire-report.html" title="Surefire Report"> + Surefire Report</a> + </li> + <li class="none"> + <a href="rat-report.html" title="Rat Report"> + Rat Report</a> + </li> + <li class="none"> + <a href="jdepend-report.html" title="JDepend"> + JDepend</a> + </li> + <li class="none"> + <a href="jacoco/index.html" title="JaCoCo Test"> + JaCoCo Test</a> + </li> + <li class="none"> + <a href="findbugs.html" title="FindBugs"> + FindBugs</a> + </li> + <li class="none active"> + <a href="checkstyle.html" title="Checkstyle"> + Checkstyle</a> + </li> + <li class="none"> + <a href="pmd.html" title="PMD"> + PMD</a> + </li> + <li class="none"> + <a href="cpd.html" title="CPD"> + CPD</a> + </li> + </ul> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header">Commons</li> + <li class="none"> + <a href="../../" title="Home"> + Home</a> + </li> + <li class="none"> + <a href="http://www.apache.org/licenses/" class="externalLink" title="License"> + License</a> + </li> + <li class="collapsed"> + <a href="../../components.html" title="Components"> + Components</a> + </li> + <li class="collapsed"> + <a href="../../sandbox/index.html" title="Sandbox"> + Sandbox</a> + </li> + <li class="collapsed"> + <a href="../../dormant/index.html" title="Dormant"> + Dormant</a> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header">General Information</li> + <li class="none"> + <a href="../../security.html" title="Security"> + Security</a> + </li> + <li class="none"> + <a href="../../volunteering.html" title="Volunteering"> + Volunteering</a> + </li> + <li class="none"> + <a href="../../patches.html" title="Contributing Patches"> + Contributing Patches</a> + </li> + <li class="none"> + <a href="../../building.html" title="Building Components"> + Building Components</a> + </li> + <li class="none"> + <a href="../../commons-parent-pom.html" title="Commons Parent Pom"> + Commons Parent Pom</a> + </li> + <li class="none"> + <a href="../../build-plugin/index.html" title="Commons Build Plugin"> + Commons Build Plugin</a> + </li> + <li class="none"> + <a href="../../releases/index.html" title="Releasing Components"> + Releasing Components</a> + </li> + <li class="none"> + <a href="http://wiki.apache.org/commons/FrontPage" class="externalLink" title="Wiki"> + Wiki</a> + </li> + </ul> + <ul class="nav nav-list"> + <li class="nav-header">ASF</li> + <li class="none"> + <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How the ASF works"> + How the ASF works</a> + </li> + <li class="none"> + <a href="http://www.apache.org/foundation/getinvolved.html" class="externalLink" title="Get Involved"> + Get Involved</a> + </li> + <li class="none"> + <a href="http://www.apache.org/dev/" class="externalLink" title="Developer Resources"> + Developer Resources</a> + </li> + <li class="none"> + <a href="http://www.apache.org/foundation/policies/conduct.html" class="externalLink" title="Code of Conduct"> + Code of Conduct</a> + </li> + <li class="none"> + <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"> + Sponsorship</a> + </li> + <li class="none"> + <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"> + Thanks</a> + </li> + </ul> + </div> + <div id="poweredBy"> + <a href="http://www.apache.org/events/current-event.html" title="ApacheCon" class="builtBy"> + <img class="builtBy" alt="ApacheCon" src="http://www.apache.org/events/current-event-125x125.png" /> + </a> + <a href="http://maven.apache.org/" title="Maven" class="builtBy"> + <img class="builtBy" alt="Maven" src="http://maven.apache.org/images/logos/maven-feather.png" /> + </a> + </div> + </td> + <td class="content"> + <div class="section"> +<h2><a name="Checkstyle_Results"></a>Checkstyle Results</h2> +<p>The following document contains the results of <a class="externalLink" href="http://checkstyle.sourceforge.net/">Checkstyle</a> 6.11.2 with checkstyle.xml ruleset. <a href="checkstyle.rss"><img alt="rss feed" src="images/rss.png" /></a></p></div> +<div class="section"> +<h2><a name="Summary"></a>Summary</h2> +<table border="0" class="bodyTable"> +<tr class="a"> +<th>Files</th> +<th><img src="images/icon_info_sml.gif" alt="" /> Info</th> +<th><img src="images/icon_warning_sml.gif" alt="" /> Warnings</th> +<th><img src="images/icon_error_sml.gif" alt="" /> Errors</th></tr> +<tr class="b"> +<td>44</td> +<td>0</td> +<td>0</td> +<td>0</td></tr></table></div> +<div class="section"> +<h2><a name="Files"></a>Files</h2> +<table border="0" class="bodyTable"> +<tr class="a"> +<th>File</th> +<th><img src="images/icon_info_sml.gif" alt="" /> I</th> +<th><img src="images/icon_warning_sml.gif" alt="" /> W</th> +<th><img src="images/icon_error_sml.gif" alt="" /> E</th></tr></table></div> +<div class="section"> +<h2><a name="Details"></a>Details</h2></div> + </td> + </tr> + </table> + </div> + + <div class="footer"> + <p>Copyright © 2016 + <a href="https://www.apache.org/">The Apache Software Foundation</a>. + All Rights Reserved.</p> + +<div class="center">Apache Commons, Apache Commons Rng, Apache, the Apache feather logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. + All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div> + </div> + </body> + +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1a/1a889e567cb936852d6f652dc24e1100374cb9ee.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1a/1a889e567cb936852d6f652dc24e1100374cb9ee.svn-base b/commons-rng-core/site-content/.svn/pristine/1a/1a889e567cb936852d6f652dc24e1100374cb9ee.svn-base new file mode 100644 index 0000000..dff477d --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1a/1a889e567cb936852d6f652dc24e1100374cb9ee.svn-base @@ -0,0 +1,5 @@ +org.apache.commons.rng +org.apache.commons.rng.internal +org.apache.commons.rng.internal.source32 +org.apache.commons.rng.internal.source64 +org.apache.commons.rng.internal.util http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1b/1b62d1b11784e71e29a76d7efb7871c98164965b.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1b/1b62d1b11784e71e29a76d7efb7871c98164965b.svn-base b/commons-rng-core/site-content/.svn/pristine/1b/1b62d1b11784e71e29a76d7efb7871c98164965b.svn-base new file mode 100644 index 0000000..84987fa --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1b/1b62d1b11784e71e29a76d7efb7871c98164965b.svn-base @@ -0,0 +1,127 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Uses of Class org.apache.commons.rng.internal.source32.MultiplyWithCarry256 (Apache Commons Rng 1.0-SNAPSHOT API)</title> +<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="Uses of Class org.apache.commons.rng.internal.source32.MultiplyWithCarry256 (Apache Commons Rng 1.0-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../../../overview-summary.html">Overview</a></li> +<li><a href="../package-summary.html">Package</a></li> +<li><a href="../../../../../../../org/apache/commons/rng/internal/source32/MultiplyWithCarry256.html" title="class in org.apache.commons.rng.internal.source32">Class</a></li> +<li class="navBarCell1Rev">Use</li> +<li><a href="../package-tree.html">Tree</a></li> +<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../../../help-doc.html">Help</a></li> +</ul> +<div class="aboutLanguage"><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></div> +</div> +<div class="subNav"> +<ul class="navList"> +<li>Prev</li> +<li>Next</li> +</ul> +<ul class="navList"> +<li><a href="../../../../../../../index.html?org/apache/commons/rng/internal/source32/class-use/MultiplyWithCarry256.html" target="_top">Frames</a></li> +<li><a href="MultiplyWithCarry256.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<div class="header"> +<h2 title="Uses of Class org.apache.commons.rng.internal.source32.MultiplyWithCarry256" class="title">Uses of Class<br>org.apache.commons.rng.internal.source32.MultiplyWithCarry256</h2> +</div> +<div class="classUseContainer">No usage of org.apache.commons.rng.internal.source32.MultiplyWithCarry256</div> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../../../overview-summary.html">Overview</a></li> +<li><a href="../package-summary.html">Package</a></li> +<li><a href="../../../../../../../org/apache/commons/rng/internal/source32/MultiplyWithCarry256.html" title="class in org.apache.commons.rng.internal.source32">Class</a></li> +<li class="navBarCell1Rev">Use</li> +<li><a href="../package-tree.html">Tree</a></li> +<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../../../help-doc.html">Help</a></li> +</ul> +<div class="aboutLanguage"><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></div> +</div> +<div class="subNav"> +<ul class="navList"> +<li>Prev</li> +<li>Next</li> +</ul> +<ul class="navList"> +<li><a href="../../../../../../../index.html?org/apache/commons/rng/internal/source32/class-use/MultiplyWithCarry256.html" target="_top">Frames</a></li> +<li><a href="MultiplyWithCarry256.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1e/1e379a84603b8248bee2cea507dc6f26bb3764a8.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1e/1e379a84603b8248bee2cea507dc6f26bb3764a8.svn-base b/commons-rng-core/site-content/.svn/pristine/1e/1e379a84603b8248bee2cea507dc6f26bb3764a8.svn-base new file mode 100644 index 0000000..7e4b96b --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1e/1e379a84603b8248bee2cea507dc6f26bb3764a8.svn-base @@ -0,0 +1,414 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>MersenneTwister64 (Apache Commons Rng 1.0-SNAPSHOT API)</title> +<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="MersenneTwister64 (Apache Commons Rng 1.0-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/MersenneTwister64.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../../help-doc.html">Help</a></li> +</ul> +<div class="aboutLanguage"><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></div> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html" title="class in org.apache.commons.rng.internal.source64"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../../org/apache/commons/rng/internal/source64/RandomLongSource.html" title="interface in org.apache.commons.rng.internal.source64"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../../index.html?org/apache/commons/rng/internal/source64/MersenneTwister64.html" target="_top">Frames</a></li> +<li><a href="MersenneTwister64.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.commons.rng.internal.source64</div> +<h2 title="Class MersenneTwister64" class="title">Class MersenneTwister64</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html" title="class in org.apache.commons.rng.internal">org.apache.commons.rng.internal.BaseProvider</a></li> +<li> +<ul class="inheritance"> +<li><a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html" title="class in org.apache.commons.rng.internal.source64">org.apache.commons.rng.internal.source64.LongProvider</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.commons.rng.internal.source64.MersenneTwister64</li> +</ul> +</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="../../../../../../org/apache/commons/rng/internal/source64/RandomLongSource.html" title="interface in org.apache.commons.rng.internal.source64">RandomLongSource</a>, <a href="../../../../../../org/apache/commons/rng/UniformRandomProvider.html" title="interface in org.apache.commons.rng">UniformRandomProvider</a></dd> +</dl> +<hr> +<br> +<pre>public class <a href="../../../../../../src-html/org/apache/commons/rng/internal/source64/MersenneTwister64.html#line.73">MersenneTwister64</a> +extends <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html" title="class in org.apache.commons.rng.internal.source64">LongProvider</a></pre> +<div class="block">This class provides the 64-bits version of the originally 32-bits + <a href="../../../../../../org/apache/commons/rng/internal/source32/MersenneTwister.html" title="class in org.apache.commons.rng.internal.source32"><code>Mersenne Twister</code></a>. + + <p> + This class is mainly a Java port of + <a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt64.html"> + the 2014/2/23 version of the generator + </a> written in C by Takuji Nishimura and Makoto Matsumoto. + </p> + + <p> + Here is their original copyright: + </p> + + <table border="0" width="80%" cellpadding="10" align="center" bgcolor="#E0E0E0"> + <tr><td>Copyright (C) 2004, Makoto Matsumoto and Takuji Nishimura, + All rights reserved.</td></tr> + + <tr><td>Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + <ol> + <li>Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer.</li> + <li>Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution.</li> + <li>The names of its contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission.</li> + </ol></td></tr> + + <tr><td><strong>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE.</strong></td></tr> + </table></div> +<dl> +<dt><span class="simpleTagLabel">Since:</span></dt> +<dd>1.0</dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rng/internal/source64/MersenneTwister64.html#MersenneTwister64-long:A-">MersenneTwister64</a></span>(long[] seed)</code> +<div class="block">Creates a new random number generator.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code>protected byte[]</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rng/internal/source64/MersenneTwister64.html#getStateInternal--">getStateInternal</a></span>()</code> +<div class="block">Creates a snapshot of the RNG state.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rng/internal/source64/MersenneTwister64.html#next--">next</a></span>()</code></td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rng/internal/source64/MersenneTwister64.html#setStateInternal-byte:A-">setStateInternal</a></span>(byte[] s)</code> +<div class="block">Resets the RNG to the given <code>state</code>.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.rng.internal.source64.LongProvider"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.commons.rng.internal.source64.<a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html" title="class in org.apache.commons.rng.internal.source64">LongProvider</a></h3> +<code><a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextBoolean--">nextBoolean</a>, <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextBytes-byte:A-">nextBytes</a>, <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextBytes-byte:A-int-int-">nextBytes</a>, <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextDouble--">nextDouble</a>, <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextFloat--">nextFloat</a>, <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextInt--">nextInt</a>, <a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#nextLong--">nextLong</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.rng.internal.BaseProvider"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.commons.rng.internal.<a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html" title="class in org.apache.commons.rng.internal">BaseProvider</a></h3> +<code><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#checkIndex-int-int-int-">checkIndex</a>, <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#checkStateSize-byte:A-int-">checkStateSize</a>, <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#getState--">getState</a>, <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#nextInt-int-">nextInt</a>, <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#nextLong-long-">nextLong</a>, <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#setState-byte:A-">setState</a>, <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#toString--">toString</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="MersenneTwister64-long:A-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>MersenneTwister64</h4> +<pre>public <a href="../../../../../../src-html/org/apache/commons/rng/internal/source64/MersenneTwister64.html#line.94">MersenneTwister64</a>(long[] seed)</pre> +<div class="block">Creates a new random number generator.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>seed</code> - Initial seed.</dd> +</dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getStateInternal--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getStateInternal</h4> +<pre>protected byte[] <a href="../../../../../../src-html/org/apache/commons/rng/internal/source64/MersenneTwister64.html#line.100">getStateInternal</a>()</pre> +<div class="block">Creates a snapshot of the RNG state.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#getStateInternal--">getStateInternal</a></code> in class <code><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html" title="class in org.apache.commons.rng.internal">BaseProvider</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the internal state.</dd> +</dl> +</li> +</ul> +<a name="setStateInternal-byte:A-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setStateInternal</h4> +<pre>protected void <a href="../../../../../../src-html/org/apache/commons/rng/internal/source64/MersenneTwister64.html#line.109">setStateInternal</a>(byte[] s)</pre> +<div class="block">Resets the RNG to the given <code>state</code>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#setStateInternal-byte:A-">setStateInternal</a></code> in class <code><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html" title="class in org.apache.commons.rng.internal">BaseProvider</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>s</code> - State (previously obtained by a call to + <a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#getStateInternal--"><code>BaseProvider.getStateInternal()</code></a>).</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../../org/apache/commons/rng/internal/BaseProvider.html#checkStateSize-byte:A-int-"><code>BaseProvider.checkStateSize(byte[],int)</code></a></dd> +</dl> +</li> +</ul> +<a name="next--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>next</h4> +<pre>public long <a href="../../../../../../src-html/org/apache/commons/rng/internal/source64/MersenneTwister64.html#line.173">next</a>()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rng/internal/source64/RandomLongSource.html#next--">next</a></code> in interface <code><a href="../../../../../../org/apache/commons/rng/internal/source64/RandomLongSource.html" title="interface in org.apache.commons.rng.internal.source64">RandomLongSource</a></code></dd> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html#next--">next</a></code> in class <code><a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html" title="class in org.apache.commons.rng.internal.source64">LongProvider</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the next random value.</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/MersenneTwister64.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../../help-doc.html">Help</a></li> +</ul> +<div class="aboutLanguage"><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></div> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../../org/apache/commons/rng/internal/source64/LongProvider.html" title="class in org.apache.commons.rng.internal.source64"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../../org/apache/commons/rng/internal/source64/RandomLongSource.html" title="interface in org.apache.commons.rng.internal.source64"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../../index.html?org/apache/commons/rng/internal/source64/MersenneTwister64.html" target="_top">Frames</a></li> +<li><a href="MersenneTwister64.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1e/1e4fe367aaffffe9816cbf9d7fce08e457fbcf02.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1e/1e4fe367aaffffe9816cbf9d7fce08e457fbcf02.svn-base b/commons-rng-core/site-content/.svn/pristine/1e/1e4fe367aaffffe9816cbf9d7fce08e457fbcf02.svn-base new file mode 100644 index 0000000..61fbd10 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1e/1e4fe367aaffffe9816cbf9d7fce08e457fbcf02.svn-base @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>ByteArray2LongArray.java</title><link rel="stylesheet" href="../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons Rng</a> > <a href="index.source.html" class="el_package">org.apache.commons.rng.internal.util</a> > <span class="el_source">ByteArray2LongArra y.java</span></div><h1>ByteArray2LongArray.java</h1><pre class="source lang-java linenums">/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.rng.internal.util; + +import java.util.Arrays; + +/** + * Creates a {@code long[]} from a {@code byte[]}. + * + * @since 1.0 + */ +<span class="fc" id="L26">public class ByteArray2LongArray implements SeedConverter<byte[], long[]> {</span> + /** Number of bytes in a {@code long}. */ + private static final int LONG_SIZE = 8; + + /** {@inheritDoc} */ + @Override + public long[] convert(byte[] seed) { +<span class="fc bfc" id="L33" title="All 2 branches covered."> final byte[] tmp = seed.length % LONG_SIZE == 0 ?</span> + seed : +<span class="fc" id="L35"> Arrays.copyOf(seed, LONG_SIZE * ((seed.length + LONG_SIZE - 1) / LONG_SIZE));</span> + +<span class="fc" id="L37"> return NumberFactory.makeLongArray(tmp);</span> + } +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.5.201505241946</span></div></body></html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1e/1e9a08f4ccdd686f5d1633f55911facd1a822437.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1e/1e9a08f4ccdd686f5d1633f55911facd1a822437.svn-base b/commons-rng-core/site-content/.svn/pristine/1e/1e9a08f4ccdd686f5d1633f55911facd1a822437.svn-base new file mode 100644 index 0000000..05b2db5 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1e/1e9a08f4ccdd686f5d1633f55911facd1a822437.svn-base @@ -0,0 +1,141 @@ +# +# RNG: org.apache.commons.rng.internal.source32.Well19937c +# +# Java: 1.8.0_66 +# Runtime: 1.8.0_66-b17 +# JVM: Java HotSpot(TM) 64-Bit Server VM 25.66-b17 +# OS: Linux 3.16.0-4-amd64 amd64 +# +# Analyzer: /usr/bin/dieharder -a -g 200 -Y 1 -k 2 +# +#=============================================================================# +# dieharder version 3.31.1 Copyright 2003 Robert G. Brown # +#=============================================================================# + rng_name |rands/second| Seed | +stdin_input_raw| 1.44e+07 | 59436776| +#=============================================================================# + test_name |ntup| tsamples |psamples| p-value |Assessment +#=============================================================================# + diehard_birthdays| 0| 100| 100|0.42164008| PASSED + diehard_operm5| 0| 1000000| 100|0.09053233| PASSED + diehard_rank_32x32| 0| 40000| 100|0.45325244| PASSED + diehard_rank_6x8| 0| 100000| 100|0.84110950| PASSED + diehard_bitstream| 0| 2097152| 100|0.26168372| PASSED + diehard_opso| 0| 2097152| 100|0.05545629| PASSED + diehard_oqso| 0| 2097152| 100|0.15938350| PASSED + diehard_dna| 0| 2097152| 100|0.78208388| PASSED +diehard_count_1s_str| 0| 256000| 100|0.83916419| PASSED +diehard_count_1s_byt| 0| 256000| 100|0.49000972| PASSED + diehard_parking_lot| 0| 12000| 100|0.86207866| PASSED + diehard_2dsphere| 2| 8000| 100|0.61671243| PASSED + diehard_3dsphere| 3| 4000| 100|0.89134239| PASSED + diehard_squeeze| 0| 100000| 100|0.96726067| PASSED + diehard_sums| 0| 100| 100|0.01044504| PASSED + diehard_runs| 0| 100000| 100|0.50736799| PASSED + diehard_runs| 0| 100000| 100|0.94358899| PASSED + diehard_craps| 0| 200000| 100|0.89692425| PASSED + diehard_craps| 0| 200000| 100|0.15601445| PASSED + marsaglia_tsang_gcd| 0| 10000000| 100|0.76029649| PASSED + marsaglia_tsang_gcd| 0| 10000000| 100|0.99864179| WEAK + marsaglia_tsang_gcd| 0| 10000000| 200|0.99060814| PASSED + marsaglia_tsang_gcd| 0| 10000000| 200|0.92710349| PASSED + sts_monobit| 1| 100000| 100|0.77531535| PASSED + sts_runs| 2| 100000| 100|0.11121188| PASSED + sts_serial| 1| 100000| 100|0.48989667| PASSED + sts_serial| 2| 100000| 100|0.62885115| PASSED + sts_serial| 3| 100000| 100|0.70849971| PASSED + sts_serial| 3| 100000| 100|0.89789792| PASSED + sts_serial| 4| 100000| 100|0.93547375| PASSED + sts_serial| 4| 100000| 100|0.75446607| PASSED + sts_serial| 5| 100000| 100|0.23765673| PASSED + sts_serial| 5| 100000| 100|0.64493619| PASSED + sts_serial| 6| 100000| 100|0.35740516| PASSED + sts_serial| 6| 100000| 100|0.93921916| PASSED + sts_serial| 7| 100000| 100|0.79575819| PASSED + sts_serial| 7| 100000| 100|0.35752023| PASSED + sts_serial| 8| 100000| 100|0.84505494| PASSED + sts_serial| 8| 100000| 100|0.25047103| PASSED + sts_serial| 9| 100000| 100|0.95409560| PASSED + sts_serial| 9| 100000| 100|0.98462232| PASSED + sts_serial| 10| 100000| 100|0.73814100| PASSED + sts_serial| 10| 100000| 100|0.88088998| PASSED + sts_serial| 11| 100000| 100|0.14487713| PASSED + sts_serial| 11| 100000| 100|0.27763142| PASSED + sts_serial| 12| 100000| 100|0.50785393| PASSED + sts_serial| 12| 100000| 100|0.11546755| PASSED + sts_serial| 13| 100000| 100|0.41604004| PASSED + sts_serial| 13| 100000| 100|0.52029373| PASSED + sts_serial| 14| 100000| 100|0.73530743| PASSED + sts_serial| 14| 100000| 100|0.49019907| PASSED + sts_serial| 15| 100000| 100|0.86337681| PASSED + sts_serial| 15| 100000| 100|0.61660681| PASSED + sts_serial| 16| 100000| 100|0.73868553| PASSED + sts_serial| 16| 100000| 100|0.06983805| PASSED + rgb_bitdist| 1| 100000| 100|0.54303412| PASSED + rgb_bitdist| 2| 100000| 100|0.99273369| PASSED + rgb_bitdist| 3| 100000| 100|0.42653962| PASSED + rgb_bitdist| 4| 100000| 100|0.99520619| WEAK + rgb_bitdist| 4| 100000| 200|0.58230062| PASSED + rgb_bitdist| 5| 100000| 100|0.59265909| PASSED + rgb_bitdist| 6| 100000| 100|0.75138572| PASSED + rgb_bitdist| 7| 100000| 100|0.28225467| PASSED + rgb_bitdist| 8| 100000| 100|0.77086808| PASSED + rgb_bitdist| 9| 100000| 100|0.23519537| PASSED + rgb_bitdist| 10| 100000| 100|0.79540735| PASSED + rgb_bitdist| 11| 100000| 100|0.69718052| PASSED + rgb_bitdist| 12| 100000| 100|0.95737954| PASSED +rgb_minimum_distance| 2| 10000| 1000|0.58401107| PASSED +rgb_minimum_distance| 3| 10000| 1000|0.92088377| PASSED +rgb_minimum_distance| 4| 10000| 1000|0.64346352| PASSED +rgb_minimum_distance| 5| 10000| 1000|0.57897504| PASSED + rgb_permutations| 2| 100000| 100|0.91883301| PASSED + rgb_permutations| 3| 100000| 100|0.85363971| PASSED + rgb_permutations| 4| 100000| 100|0.59012752| PASSED + rgb_permutations| 5| 100000| 100|0.29188096| PASSED + rgb_lagged_sum| 0| 1000000| 100|0.79640796| PASSED + rgb_lagged_sum| 1| 1000000| 100|0.70556241| PASSED + rgb_lagged_sum| 2| 1000000| 100|0.21330739| PASSED + rgb_lagged_sum| 3| 1000000| 100|0.68157383| PASSED + rgb_lagged_sum| 4| 1000000| 100|0.79689352| PASSED + rgb_lagged_sum| 5| 1000000| 100|0.37671317| PASSED + rgb_lagged_sum| 6| 1000000| 100|0.85684812| PASSED + rgb_lagged_sum| 7| 1000000| 100|0.37357600| PASSED + rgb_lagged_sum| 8| 1000000| 100|0.25945675| PASSED + rgb_lagged_sum| 9| 1000000| 100|0.96654435| PASSED + rgb_lagged_sum| 10| 1000000| 100|0.39805141| PASSED + rgb_lagged_sum| 11| 1000000| 100|0.06631013| PASSED + rgb_lagged_sum| 12| 1000000| 100|0.84530761| PASSED + rgb_lagged_sum| 13| 1000000| 100|0.31940772| PASSED + rgb_lagged_sum| 14| 1000000| 100|0.98670856| PASSED + rgb_lagged_sum| 15| 1000000| 100|0.62649368| PASSED + rgb_lagged_sum| 16| 1000000| 100|0.14373419| PASSED + rgb_lagged_sum| 17| 1000000| 100|0.52957306| PASSED + rgb_lagged_sum| 18| 1000000| 100|0.13135263| PASSED + rgb_lagged_sum| 19| 1000000| 100|0.28939278| PASSED + rgb_lagged_sum| 20| 1000000| 100|0.40596963| PASSED + rgb_lagged_sum| 21| 1000000| 100|0.16855639| PASSED + rgb_lagged_sum| 22| 1000000| 100|0.42238750| PASSED + rgb_lagged_sum| 23| 1000000| 100|0.05079210| PASSED + rgb_lagged_sum| 24| 1000000| 100|0.52781129| PASSED + rgb_lagged_sum| 25| 1000000| 100|0.31215381| PASSED + rgb_lagged_sum| 26| 1000000| 100|0.86858075| PASSED + rgb_lagged_sum| 27| 1000000| 100|0.33062795| PASSED + rgb_lagged_sum| 28| 1000000| 100|0.18971938| PASSED + rgb_lagged_sum| 29| 1000000| 100|0.68936598| PASSED + rgb_lagged_sum| 30| 1000000| 100|0.05122626| PASSED + rgb_lagged_sum| 31| 1000000| 100|0.76570971| PASSED + rgb_lagged_sum| 32| 1000000| 100|0.51122147| PASSED + rgb_kstest_test| 0| 10000| 1000|0.04402176| PASSED + dab_bytedistrib| 0| 51200000| 1|0.09572148| PASSED + dab_dct| 256| 50000| 1|0.54530579| PASSED +Preparing to run test 207. ntuple = 0 + dab_filltree| 32| 15000000| 1|0.15514456| PASSED + dab_filltree| 32| 15000000| 1|0.37657867| PASSED +Preparing to run test 208. ntuple = 0 + dab_filltree2| 0| 5000000| 1|0.03800518| PASSED + dab_filltree2| 1| 5000000| 1|0.26688507| PASSED +Preparing to run test 209. ntuple = 0 + dab_monobit2| 12| 65000000| 1|0.16131661| PASSED +# +# Test duration: 96.87757159105 minutes +# http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1e/1ea017e11ac2499ecf9881655d79a4127afa3c2c.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1e/1ea017e11ac2499ecf9881655d79a4127afa3c2c.svn-base b/commons-rng-core/site-content/.svn/pristine/1e/1ea017e11ac2499ecf9881655d79a4127afa3c2c.svn-base new file mode 100644 index 0000000..59135ab --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1e/1ea017e11ac2499ecf9881655d79a4127afa3c2c.svn-base @@ -0,0 +1,150 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> +<title>Source code</title> +<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> +</head> +<body> +<div class="sourceContainer"> +<pre><span class="sourceLineNo">001</span>/*<a name="line.1"></a> +<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a> +<span class="sourceLineNo">003</span> * contributor license agreements. See the NOTICE file distributed with<a name="line.3"></a> +<span class="sourceLineNo">004</span> * this work for additional information regarding copyright ownership.<a name="line.4"></a> +<span class="sourceLineNo">005</span> * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a> +<span class="sourceLineNo">006</span> * (the "License"); you may not use this file except in compliance with<a name="line.6"></a> +<span class="sourceLineNo">007</span> * the License. You may obtain a copy of the License at<a name="line.7"></a> +<span class="sourceLineNo">008</span> *<a name="line.8"></a> +<span class="sourceLineNo">009</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a> +<span class="sourceLineNo">010</span> *<a name="line.10"></a> +<span class="sourceLineNo">011</span> * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a> +<span class="sourceLineNo">012</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a> +<span class="sourceLineNo">013</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a> +<span class="sourceLineNo">014</span> * See the License for the specific language governing permissions and<a name="line.14"></a> +<span class="sourceLineNo">015</span> * limitations under the License.<a name="line.15"></a> +<span class="sourceLineNo">016</span> */<a name="line.16"></a> +<span class="sourceLineNo">017</span>package org.apache.commons.rng.internal.source32;<a name="line.17"></a> +<span class="sourceLineNo">018</span><a name="line.18"></a> +<span class="sourceLineNo">019</span>/**<a name="line.19"></a> +<span class="sourceLineNo">020</span> * This class implements the WELL1024a pseudo-random number generator<a name="line.20"></a> +<span class="sourceLineNo">021</span> * from Fran&ccedil;ois Panneton, Pierre L'Ecuyer and Makoto Matsumoto.<a name="line.21"></a> +<span class="sourceLineNo">022</span> * <p><a name="line.22"></a> +<span class="sourceLineNo">023</span> * This generator is described in a paper by Fran&ccedil;ois Panneton,<a name="line.23"></a> +<span class="sourceLineNo">024</span> * Pierre L'Ecuyer and Makoto Matsumoto<a name="line.24"></a> +<span class="sourceLineNo">025</span> * <a href="http://www.iro.umontreal.ca/~lecuyer/myftp/papers/wellrng.pdf"><a name="line.25"></a> +<span class="sourceLineNo">026</span> * Improved Long-Period Generators Based on Linear Recurrences Modulo 2</a><a name="line.26"></a> +<span class="sourceLineNo">027</span> * ACM Transactions on Mathematical Software, 32, 1 (2006).<a name="line.27"></a> +<span class="sourceLineNo">028</span> * The errata for the paper are in<a name="line.28"></a> +<span class="sourceLineNo">029</span> * <a href="http://www.iro.umontreal.ca/~lecuyer/myftp/papers/wellrng-errata.txt">wellrng-errata.txt</a>.<a name="line.29"></a> +<span class="sourceLineNo">030</span> * </p><a name="line.30"></a> +<span class="sourceLineNo">031</span> *<a name="line.31"></a> +<span class="sourceLineNo">032</span> * @see <a href="http://www.iro.umontreal.ca/~panneton/WELLRNG.html">WELL Random number generator</a><a name="line.32"></a> +<span class="sourceLineNo">033</span> * @since 1.0<a name="line.33"></a> +<span class="sourceLineNo">034</span> */<a name="line.34"></a> +<span class="sourceLineNo">035</span>public class Well1024a extends AbstractWell {<a name="line.35"></a> +<span class="sourceLineNo">036</span> /** Number of bits in the pool. */<a name="line.36"></a> +<span class="sourceLineNo">037</span> private static final int K = 1024;<a name="line.37"></a> +<span class="sourceLineNo">038</span> /** First parameter of the algorithm. */<a name="line.38"></a> +<span class="sourceLineNo">039</span> private static final int M1 = 3;<a name="line.39"></a> +<span class="sourceLineNo">040</span> /** Second parameter of the algorithm. */<a name="line.40"></a> +<span class="sourceLineNo">041</span> private static final int M2 = 24;<a name="line.41"></a> +<span class="sourceLineNo">042</span> /** Third parameter of the algorithm. */<a name="line.42"></a> +<span class="sourceLineNo">043</span> private static final int M3 = 10;<a name="line.43"></a> +<span class="sourceLineNo">044</span> /** The indirection index table. */<a name="line.44"></a> +<span class="sourceLineNo">045</span> private static final IndexTable TABLE = new IndexTable(K, M1, M2, M3);<a name="line.45"></a> +<span class="sourceLineNo">046</span><a name="line.46"></a> +<span class="sourceLineNo">047</span> /**<a name="line.47"></a> +<span class="sourceLineNo">048</span> * Creates a new random number generator.<a name="line.48"></a> +<span class="sourceLineNo">049</span> *<a name="line.49"></a> +<span class="sourceLineNo">050</span> * @param seed Initial seed.<a name="line.50"></a> +<span class="sourceLineNo">051</span> */<a name="line.51"></a> +<span class="sourceLineNo">052</span> public Well1024a(int[] seed) {<a name="line.52"></a> +<span class="sourceLineNo">053</span> super(K, seed);<a name="line.53"></a> +<span class="sourceLineNo">054</span> }<a name="line.54"></a> +<span class="sourceLineNo">055</span><a name="line.55"></a> +<span class="sourceLineNo">056</span> /** {@inheritDoc} */<a name="line.56"></a> +<span class="sourceLineNo">057</span> @Override<a name="line.57"></a> +<span class="sourceLineNo">058</span> public int next() {<a name="line.58"></a> +<span class="sourceLineNo">059</span> final int indexRm1 = TABLE.getIndexPred(index);<a name="line.59"></a> +<span class="sourceLineNo">060</span><a name="line.60"></a> +<span class="sourceLineNo">061</span> final int v0 = v[index];<a name="line.61"></a> +<span class="sourceLineNo">062</span> final int vM1 = v[TABLE.getIndexM1(index)];<a name="line.62"></a> +<span class="sourceLineNo">063</span> final int vM2 = v[TABLE.getIndexM2(index)];<a name="line.63"></a> +<span class="sourceLineNo">064</span> final int vM3 = v[TABLE.getIndexM3(index)];<a name="line.64"></a> +<span class="sourceLineNo">065</span><a name="line.65"></a> +<span class="sourceLineNo">066</span> final int z0 = v[indexRm1];<a name="line.66"></a> +<span class="sourceLineNo">067</span> final int z1 = v0 ^ (vM1 ^ (vM1 >>> 8));<a name="line.67"></a> +<span class="sourceLineNo">068</span> final int z2 = (vM2 ^ (vM2 << 19)) ^ (vM3 ^ (vM3 << 14));<a name="line.68"></a> +<span class="sourceLineNo">069</span> final int z3 = z1 ^ z2;<a name="line.69"></a> +<span class="sourceLineNo">070</span> final int z4 = (z0 ^ (z0 << 11)) ^ (z1 ^ (z1 << 7)) ^ (z2 ^ (z2 << 13));<a name="line.70"></a> +<span class="sourceLineNo">071</span><a name="line.71"></a> +<span class="sourceLineNo">072</span> v[index] = z3;<a name="line.72"></a> +<span class="sourceLineNo">073</span> v[indexRm1] = z4;<a name="line.73"></a> +<span class="sourceLineNo">074</span> index = indexRm1;<a name="line.74"></a> +<span class="sourceLineNo">075</span><a name="line.75"></a> +<span class="sourceLineNo">076</span> return z4;<a name="line.76"></a> +<span class="sourceLineNo">077</span> }<a name="line.77"></a> +<span class="sourceLineNo">078</span>}<a name="line.78"></a> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +</pre> +</div> +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/1e/1ea4583145c2a9d6026caedd928b2528379a51fa.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/1e/1ea4583145c2a9d6026caedd928b2528379a51fa.svn-base b/commons-rng-core/site-content/.svn/pristine/1e/1ea4583145c2a9d6026caedd928b2528379a51fa.svn-base new file mode 100644 index 0000000..df47493 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/1e/1ea4583145c2a9d6026caedd928b2528379a51fa.svn-base @@ -0,0 +1,188 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> +<title>Source code</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<div class="sourceContainer"> +<pre><span class="sourceLineNo">001</span>/*<a name="line.1"></a> +<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one or more<a name="line.2"></a> +<span class="sourceLineNo">003</span> * contributor license agreements. See the NOTICE file distributed with<a name="line.3"></a> +<span class="sourceLineNo">004</span> * this work for additional information regarding copyright ownership.<a name="line.4"></a> +<span class="sourceLineNo">005</span> * The ASF licenses this file to You under the Apache License, Version 2.0<a name="line.5"></a> +<span class="sourceLineNo">006</span> * (the "License"); you may not use this file except in compliance with<a name="line.6"></a> +<span class="sourceLineNo">007</span> * the License. You may obtain a copy of the License at<a name="line.7"></a> +<span class="sourceLineNo">008</span> *<a name="line.8"></a> +<span class="sourceLineNo">009</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a> +<span class="sourceLineNo">010</span> *<a name="line.10"></a> +<span class="sourceLineNo">011</span> * Unless required by applicable law or agreed to in writing, software<a name="line.11"></a> +<span class="sourceLineNo">012</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.12"></a> +<span class="sourceLineNo">013</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.13"></a> +<span class="sourceLineNo">014</span> * See the License for the specific language governing permissions and<a name="line.14"></a> +<span class="sourceLineNo">015</span> * limitations under the License.<a name="line.15"></a> +<span class="sourceLineNo">016</span> */<a name="line.16"></a> +<span class="sourceLineNo">017</span>package org.apache.commons.rng;<a name="line.17"></a> +<span class="sourceLineNo">018</span><a name="line.18"></a> +<span class="sourceLineNo">019</span>/**<a name="line.19"></a> +<span class="sourceLineNo">020</span> * Applies to generators of random number sequences that follow a uniform<a name="line.20"></a> +<span class="sourceLineNo">021</span> * distribution.<a name="line.21"></a> +<span class="sourceLineNo">022</span> *<a name="line.22"></a> +<span class="sourceLineNo">023</span> * @since 1.0<a name="line.23"></a> +<span class="sourceLineNo">024</span> */<a name="line.24"></a> +<span class="sourceLineNo">025</span>public interface UniformRandomProvider {<a name="line.25"></a> +<span class="sourceLineNo">026</span> /**<a name="line.26"></a> +<span class="sourceLineNo">027</span> * Generates {@code byte} values and places them into a user-supplied array.<a name="line.27"></a> +<span class="sourceLineNo">028</span> * <p><a name="line.28"></a> +<span class="sourceLineNo">029</span> * The number of random bytes produced is equal to the length of the<a name="line.29"></a> +<span class="sourceLineNo">030</span> * the byte array.<a name="line.30"></a> +<span class="sourceLineNo">031</span> * </p><a name="line.31"></a> +<span class="sourceLineNo">032</span> *<a name="line.32"></a> +<span class="sourceLineNo">033</span> * @param bytes Byte array in which to put the random bytes.<a name="line.33"></a> +<span class="sourceLineNo">034</span> * Cannot be {@code null}.<a name="line.34"></a> +<span class="sourceLineNo">035</span> */<a name="line.35"></a> +<span class="sourceLineNo">036</span> void nextBytes(byte[] bytes);<a name="line.36"></a> +<span class="sourceLineNo">037</span><a name="line.37"></a> +<span class="sourceLineNo">038</span> /**<a name="line.38"></a> +<span class="sourceLineNo">039</span> * Generates {@code byte} values and places them into a user-supplied array.<a name="line.39"></a> +<span class="sourceLineNo">040</span> *<a name="line.40"></a> +<span class="sourceLineNo">041</span> * <p><a name="line.41"></a> +<span class="sourceLineNo">042</span> * The array is filled with bytes extracted from random integers.<a name="line.42"></a> +<span class="sourceLineNo">043</span> * This implies that the number of random bytes generated may be larger than<a name="line.43"></a> +<span class="sourceLineNo">044</span> * the length of the byte array.<a name="line.44"></a> +<span class="sourceLineNo">045</span> * </p><a name="line.45"></a> +<span class="sourceLineNo">046</span> *<a name="line.46"></a> +<span class="sourceLineNo">047</span> * @param bytes Array in which to put the generated bytes.<a name="line.47"></a> +<span class="sourceLineNo">048</span> * Cannot be {@code null}.<a name="line.48"></a> +<span class="sourceLineNo">049</span> * @param start Index at which to start inserting the generated bytes.<a name="line.49"></a> +<span class="sourceLineNo">050</span> * @param len Number of bytes to insert.<a name="line.50"></a> +<span class="sourceLineNo">051</span> * @throws IndexOutOfBoundsException if {@code start < 0} or<a name="line.51"></a> +<span class="sourceLineNo">052</span> * {@code start >= bytes.length}.<a name="line.52"></a> +<span class="sourceLineNo">053</span> * @throws IndexOutOfBoundsException if {@code len < 0} or<a name="line.53"></a> +<span class="sourceLineNo">054</span> * {@code len > bytes.length - start}.<a name="line.54"></a> +<span class="sourceLineNo">055</span> */<a name="line.55"></a> +<span class="sourceLineNo">056</span> void nextBytes(byte[] bytes,<a name="line.56"></a> +<span class="sourceLineNo">057</span> int start,<a name="line.57"></a> +<span class="sourceLineNo">058</span> int len);<a name="line.58"></a> +<span class="sourceLineNo">059</span><a name="line.59"></a> +<span class="sourceLineNo">060</span> /**<a name="line.60"></a> +<span class="sourceLineNo">061</span> * Generates an {@code int} value.<a name="line.61"></a> +<span class="sourceLineNo">062</span> *<a name="line.62"></a> +<span class="sourceLineNo">063</span> * @return the next random value.<a name="line.63"></a> +<span class="sourceLineNo">064</span> */<a name="line.64"></a> +<span class="sourceLineNo">065</span> int nextInt();<a name="line.65"></a> +<span class="sourceLineNo">066</span><a name="line.66"></a> +<span class="sourceLineNo">067</span> /**<a name="line.67"></a> +<span class="sourceLineNo">068</span> * Generates an {@code int} value between 0 (inclusive) and the<a name="line.68"></a> +<span class="sourceLineNo">069</span> * specified value (exclusive).<a name="line.69"></a> +<span class="sourceLineNo">070</span> *<a name="line.70"></a> +<span class="sourceLineNo">071</span> * @param n Bound on the random number to be returned. Must be positive.<a name="line.71"></a> +<span class="sourceLineNo">072</span> * @return a random {@code int} value between 0 (inclusive) and n<a name="line.72"></a> +<span class="sourceLineNo">073</span> * (exclusive).<a name="line.73"></a> +<span class="sourceLineNo">074</span> * @throws IllegalArgumentException if {@code n} is negative.<a name="line.74"></a> +<span class="sourceLineNo">075</span> */<a name="line.75"></a> +<span class="sourceLineNo">076</span> int nextInt(int n);<a name="line.76"></a> +<span class="sourceLineNo">077</span><a name="line.77"></a> +<span class="sourceLineNo">078</span> /**<a name="line.78"></a> +<span class="sourceLineNo">079</span> * Generates a {@code long} value.<a name="line.79"></a> +<span class="sourceLineNo">080</span> *<a name="line.80"></a> +<span class="sourceLineNo">081</span> * @return the next random value.<a name="line.81"></a> +<span class="sourceLineNo">082</span> */<a name="line.82"></a> +<span class="sourceLineNo">083</span> long nextLong();<a name="line.83"></a> +<span class="sourceLineNo">084</span><a name="line.84"></a> +<span class="sourceLineNo">085</span> /**<a name="line.85"></a> +<span class="sourceLineNo">086</span> * Generates a {@code long} value between 0 (inclusive) and the specified<a name="line.86"></a> +<span class="sourceLineNo">087</span> * value (exclusive).<a name="line.87"></a> +<span class="sourceLineNo">088</span> *<a name="line.88"></a> +<span class="sourceLineNo">089</span> * @param n Bound on the random number to be returned. Must be positive.<a name="line.89"></a> +<span class="sourceLineNo">090</span> * @return a random {@code long} value between 0 (inclusive) and n<a name="line.90"></a> +<span class="sourceLineNo">091</span> * (exclusive).<a name="line.91"></a> +<span class="sourceLineNo">092</span> * @throws IllegalArgumentException if {@code n} is negative.<a name="line.92"></a> +<span class="sourceLineNo">093</span> */<a name="line.93"></a> +<span class="sourceLineNo">094</span> long nextLong(long n);<a name="line.94"></a> +<span class="sourceLineNo">095</span><a name="line.95"></a> +<span class="sourceLineNo">096</span> /**<a name="line.96"></a> +<span class="sourceLineNo">097</span> * Generates a {@code boolean} value.<a name="line.97"></a> +<span class="sourceLineNo">098</span> *<a name="line.98"></a> +<span class="sourceLineNo">099</span> * @return the next random value.<a name="line.99"></a> +<span class="sourceLineNo">100</span> */<a name="line.100"></a> +<span class="sourceLineNo">101</span> boolean nextBoolean();<a name="line.101"></a> +<span class="sourceLineNo">102</span><a name="line.102"></a> +<span class="sourceLineNo">103</span> /**<a name="line.103"></a> +<span class="sourceLineNo">104</span> * Generates a {@code float} value between 0 and 1.<a name="line.104"></a> +<span class="sourceLineNo">105</span> *<a name="line.105"></a> +<span class="sourceLineNo">106</span> * @return the next random value between 0 and 1.<a name="line.106"></a> +<span class="sourceLineNo">107</span> */<a name="line.107"></a> +<span class="sourceLineNo">108</span> float nextFloat();<a name="line.108"></a> +<span class="sourceLineNo">109</span><a name="line.109"></a> +<span class="sourceLineNo">110</span> /**<a name="line.110"></a> +<span class="sourceLineNo">111</span> * Generates a {@code double} value between 0 and 1.<a name="line.111"></a> +<span class="sourceLineNo">112</span> *<a name="line.112"></a> +<span class="sourceLineNo">113</span> * @return the next random value between 0 and 1.<a name="line.113"></a> +<span class="sourceLineNo">114</span> */<a name="line.114"></a> +<span class="sourceLineNo">115</span> double nextDouble();<a name="line.115"></a> +<span class="sourceLineNo">116</span>}<a name="line.116"></a> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +</pre> +</div> +</body> +</html> \ No newline at end of file