http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/05/058272b0c355d2754055e4dc87ef880eb6772439.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/05/058272b0c355d2754055e4dc87ef880eb6772439.svn-base b/commons-rng-core/site-content/.svn/pristine/05/058272b0c355d2754055e4dc87ef880eb6772439.svn-base new file mode 100644 index 0000000..25d75f7 Binary files /dev/null and b/commons-rng-core/site-content/.svn/pristine/05/058272b0c355d2754055e4dc87ef880eb6772439.svn-base differ
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/05/05a7756aa85011d119881b99210b16547046ef05.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/05/05a7756aa85011d119881b99210b16547046ef05.svn-base b/commons-rng-core/site-content/.svn/pristine/05/05a7756aa85011d119881b99210b16547046ef05.svn-base new file mode 100644 index 0000000..a2ba45d --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/05/05a7756aa85011d119881b99210b16547046ef05.svn-base @@ -0,0 +1,44 @@ +<!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>Int2Long 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/Int2Long.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"> * Converts a {@code Integer} to an {@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/Int2Long.html">Int2Long</a> <strong class="jxr_keyword">implements</strong> SeedConverter<Integer, Long> { +<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> Long convert(Integer seed) { +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> s = seed; +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">return</strong> NumberFactory.makeLong(s, ~s); +<a class="jxr_linenumber" name="L30" href="#L30">30</a> } +<a class="jxr_linenumber" name="L31" href="#L31">31</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/06/061adf8e2d45636d7ffcb7ed4d4bc91e9af6607a.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/06/061adf8e2d45636d7ffcb7ed4d4bc91e9af6607a.svn-base b/commons-rng-core/site-content/.svn/pristine/06/061adf8e2d45636d7ffcb7ed4d4bc91e9af6607a.svn-base new file mode 100644 index 0000000..943c47e --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/06/061adf8e2d45636d7ffcb7ed4d4bc91e9af6607a.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.util.Long2LongArray (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.util.Long2LongArray (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/util/Long2LongArray.html" title="class in org.apache.commons.rng.internal.util">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/util/class-use/Long2LongArray.html" target="_top">Frames</a></li> +<li><a href="Long2LongArray.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.util.Long2LongArray" class="title">Uses of Class<br>org.apache.commons.rng.internal.util.Long2LongArray</h2> +</div> +<div class="classUseContainer">No usage of org.apache.commons.rng.internal.util.Long2LongArray</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/util/Long2LongArray.html" title="class in org.apache.commons.rng.internal.util">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/util/class-use/Long2LongArray.html" target="_top">Frames</a></li> +<li><a href="Long2LongArray.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/06/06ee9b1f5e51ebb58b54848e2c45651f88477d28.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/06/06ee9b1f5e51ebb58b54848e2c45651f88477d28.svn-base b/commons-rng-core/site-content/.svn/pristine/06/06ee9b1f5e51ebb58b54848e2c45651f88477d28.svn-base new file mode 100644 index 0000000..e97cbd4 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/06/06ee9b1f5e51ebb58b54848e2c45651f88477d28.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.source64.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="Uses of Class org.apache.commons.rng.internal.source64.MersenneTwister64 (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/source64/MersenneTwister64.html" title="class in org.apache.commons.rng.internal.source64">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/source64/class-use/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> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<div class="header"> +<h2 title="Uses of Class org.apache.commons.rng.internal.source64.MersenneTwister64" class="title">Uses of Class<br>org.apache.commons.rng.internal.source64.MersenneTwister64</h2> +</div> +<div class="classUseContainer">No usage of org.apache.commons.rng.internal.source64.MersenneTwister64</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/source64/MersenneTwister64.html" title="class in org.apache.commons.rng.internal.source64">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/source64/class-use/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> +<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/07/0764d256afcb074c0eee76bc43480ec8e66632d1.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/07/0764d256afcb074c0eee76bc43480ec8e66632d1.svn-base b/commons-rng-core/site-content/.svn/pristine/07/0764d256afcb074c0eee76bc43480ec8e66632d1.svn-base new file mode 100644 index 0000000..fa9c3bd --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/07/0764d256afcb074c0eee76bc43480ec8e66632d1.svn-base @@ -0,0 +1 @@ +<?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>SplitMix64</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><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.html" class="el_package">org.apache.commons.rng.internal.source64</a> > <span class="el_class">SplitMix64</span></div><h1>SplitMix64</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="so rtable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 54</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">0</td><td class="ctr2">5</td><td class="ctr1">0</td>< td class="ctr2">13</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a1"><a href="SplitMix64.java.html#L56" class="el_method">next()</a></td><td class="bar" id="b0"><img src="../.resources/greenbar.gif" width="120" height="10" title="30" alt="30"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">4</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="SplitMix64.java.html#L71" class="el_method">setStateInternal(byte[])</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="36" height="10" title="9" alt="9"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">3</td><t d class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a4"><a href="SplitMix64.java.html#L40" class="el_method">SplitMix64(Long)</a></td><td class="bar" id="b2"><img src="../.resources/greenbar.gif" width="24" height="10" title="6" alt="6"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">3</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a2"><a href="SplitMix64.java.html#L50" class="el_method">setSeedInternal(Long)</a></td><td class="bar" id="b3"><img src="../.resources/greenbar.gif" width="20" height="10" title="5" alt="5"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j 3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a0"><a href="SplitMix64.java.html#L65" class="el_method">getStateInternal()</a></td><td class="bar" id="b4"><img src="../.resources/greenbar.gif" width="16" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr></tbody></table><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/07/076df5446e890e2343840e104a03debe01bca750.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/07/076df5446e890e2343840e104a03debe01bca750.svn-base b/commons-rng-core/site-content/.svn/pristine/07/076df5446e890e2343840e104a03debe01bca750.svn-base new file mode 100644 index 0000000..68e7aab --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/07/076df5446e890e2343840e104a03debe01bca750.svn-base @@ -0,0 +1,273 @@ +<!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.source64;<a name="line.17"></a> +<span class="sourceLineNo">018</span><a name="line.18"></a> +<span class="sourceLineNo">019</span>import java.util.Arrays;<a name="line.19"></a> +<span class="sourceLineNo">020</span>import org.apache.commons.rng.internal.util.NumberFactory;<a name="line.20"></a> +<span class="sourceLineNo">021</span><a name="line.21"></a> +<span class="sourceLineNo">022</span>/**<a name="line.22"></a> +<span class="sourceLineNo">023</span> * This class provides the 64-bits version of the originally 32-bits<a name="line.23"></a> +<span class="sourceLineNo">024</span> * {@link org.apache.commons.rng.internal.source32.MersenneTwister<a name="line.24"></a> +<span class="sourceLineNo">025</span> * Mersenne Twister}.<a name="line.25"></a> +<span class="sourceLineNo">026</span> *<a name="line.26"></a> +<span class="sourceLineNo">027</span> * <p><a name="line.27"></a> +<span class="sourceLineNo">028</span> * This class is mainly a Java port of<a name="line.28"></a> +<span class="sourceLineNo">029</span> * <a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt64.html"><a name="line.29"></a> +<span class="sourceLineNo">030</span> * the 2014/2/23 version of the generator<a name="line.30"></a> +<span class="sourceLineNo">031</span> * </a> written in C by Takuji Nishimura and Makoto Matsumoto.<a name="line.31"></a> +<span class="sourceLineNo">032</span> * </p><a name="line.32"></a> +<span class="sourceLineNo">033</span> *<a name="line.33"></a> +<span class="sourceLineNo">034</span> * <p><a name="line.34"></a> +<span class="sourceLineNo">035</span> * Here is their original copyright:<a name="line.35"></a> +<span class="sourceLineNo">036</span> * </p><a name="line.36"></a> +<span class="sourceLineNo">037</span> *<a name="line.37"></a> +<span class="sourceLineNo">038</span> * <table border="0" width="80%" cellpadding="10" align="center" bgcolor="#E0E0E0"><a name="line.38"></a> +<span class="sourceLineNo">039</span> * <tr><td>Copyright (C) 2004, Makoto Matsumoto and Takuji Nishimura,<a name="line.39"></a> +<span class="sourceLineNo">040</span> * All rights reserved.</td></tr><a name="line.40"></a> +<span class="sourceLineNo">041</span> *<a name="line.41"></a> +<span class="sourceLineNo">042</span> * <tr><td>Redistribution and use in source and binary forms, with or without<a name="line.42"></a> +<span class="sourceLineNo">043</span> * modification, are permitted provided that the following conditions<a name="line.43"></a> +<span class="sourceLineNo">044</span> * are met:<a name="line.44"></a> +<span class="sourceLineNo">045</span> * <ol><a name="line.45"></a> +<span class="sourceLineNo">046</span> * <li>Redistributions of source code must retain the above copyright<a name="line.46"></a> +<span class="sourceLineNo">047</span> * notice, this list of conditions and the following disclaimer.</li><a name="line.47"></a> +<span class="sourceLineNo">048</span> * <li>Redistributions in binary form must reproduce the above copyright<a name="line.48"></a> +<span class="sourceLineNo">049</span> * notice, this list of conditions and the following disclaimer in the<a name="line.49"></a> +<span class="sourceLineNo">050</span> * documentation and/or other materials provided with the distribution.</li><a name="line.50"></a> +<span class="sourceLineNo">051</span> * <li>The names of its contributors may not be used to endorse or promote<a name="line.51"></a> +<span class="sourceLineNo">052</span> * products derived from this software without specific prior written<a name="line.52"></a> +<span class="sourceLineNo">053</span> * permission.</li><a name="line.53"></a> +<span class="sourceLineNo">054</span> * </ol></td></tr><a name="line.54"></a> +<span class="sourceLineNo">055</span> *<a name="line.55"></a> +<span class="sourceLineNo">056</span> * <tr><td><strong>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND<a name="line.56"></a> +<span class="sourceLineNo">057</span> * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,<a name="line.57"></a> +<span class="sourceLineNo">058</span> * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF<a name="line.58"></a> +<span class="sourceLineNo">059</span> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE<a name="line.59"></a> +<span class="sourceLineNo">060</span> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS<a name="line.60"></a> +<span class="sourceLineNo">061</span> * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,<a name="line.61"></a> +<span class="sourceLineNo">062</span> * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,<a name="line.62"></a> +<span class="sourceLineNo">063</span> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR<a name="line.63"></a> +<span class="sourceLineNo">064</span> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY<a name="line.64"></a> +<span class="sourceLineNo">065</span> * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT<a name="line.65"></a> +<span class="sourceLineNo">066</span> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE<a name="line.66"></a> +<span class="sourceLineNo">067</span> * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH<a name="line.67"></a> +<span class="sourceLineNo">068</span> * DAMAGE.</strong></td></tr><a name="line.68"></a> +<span class="sourceLineNo">069</span> * </table><a name="line.69"></a> +<span class="sourceLineNo">070</span> *<a name="line.70"></a> +<span class="sourceLineNo">071</span> * @since 1.0<a name="line.71"></a> +<span class="sourceLineNo">072</span> */<a name="line.72"></a> +<span class="sourceLineNo">073</span>public class MersenneTwister64 extends LongProvider {<a name="line.73"></a> +<span class="sourceLineNo">074</span> /** Size of the bytes pool. */<a name="line.74"></a> +<span class="sourceLineNo">075</span> private static final int NN = 312;<a name="line.75"></a> +<span class="sourceLineNo">076</span> /** Period second parameter. */<a name="line.76"></a> +<span class="sourceLineNo">077</span> private static final int MM = 156;<a name="line.77"></a> +<span class="sourceLineNo">078</span> /** X * MATRIX_A for X = {0, 1}. */<a name="line.78"></a> +<span class="sourceLineNo">079</span> private static final long[] MAG01 = { 0x0, 0xb5026f5aa96619e9L };<a name="line.79"></a> +<span class="sourceLineNo">080</span> /** Most significant 33 bits. */<a name="line.80"></a> +<span class="sourceLineNo">081</span> private static final long UM = 0xffffffff80000000L;<a name="line.81"></a> +<span class="sourceLineNo">082</span> /** Least significant 31 bits. */<a name="line.82"></a> +<span class="sourceLineNo">083</span> private static final long LM = 0x7fffffffL;<a name="line.83"></a> +<span class="sourceLineNo">084</span> /** Bytes pool. */<a name="line.84"></a> +<span class="sourceLineNo">085</span> private long[] mt = new long[NN];<a name="line.85"></a> +<span class="sourceLineNo">086</span> /** Current index in the bytes pool. */<a name="line.86"></a> +<span class="sourceLineNo">087</span> private int mti;<a name="line.87"></a> +<span class="sourceLineNo">088</span><a name="line.88"></a> +<span class="sourceLineNo">089</span> /**<a name="line.89"></a> +<span class="sourceLineNo">090</span> * Creates a new random number generator.<a name="line.90"></a> +<span class="sourceLineNo">091</span> *<a name="line.91"></a> +<span class="sourceLineNo">092</span> * @param seed Initial seed.<a name="line.92"></a> +<span class="sourceLineNo">093</span> */<a name="line.93"></a> +<span class="sourceLineNo">094</span> public MersenneTwister64(long[] seed) {<a name="line.94"></a> +<span class="sourceLineNo">095</span> setSeedInternal(seed);<a name="line.95"></a> +<span class="sourceLineNo">096</span> }<a name="line.96"></a> +<span class="sourceLineNo">097</span><a name="line.97"></a> +<span class="sourceLineNo">098</span> /** {@inheritDoc} */<a name="line.98"></a> +<span class="sourceLineNo">099</span> @Override<a name="line.99"></a> +<span class="sourceLineNo">100</span> protected byte[] getStateInternal() {<a name="line.100"></a> +<span class="sourceLineNo">101</span> final long[] s = Arrays.copyOf(mt, NN + 1);<a name="line.101"></a> +<span class="sourceLineNo">102</span> s[NN] = mti;<a name="line.102"></a> +<span class="sourceLineNo">103</span><a name="line.103"></a> +<span class="sourceLineNo">104</span> return NumberFactory.makeByteArray(s);<a name="line.104"></a> +<span class="sourceLineNo">105</span> }<a name="line.105"></a> +<span class="sourceLineNo">106</span><a name="line.106"></a> +<span class="sourceLineNo">107</span> /** {@inheritDoc} */<a name="line.107"></a> +<span class="sourceLineNo">108</span> @Override<a name="line.108"></a> +<span class="sourceLineNo">109</span> protected void setStateInternal(byte[] s) {<a name="line.109"></a> +<span class="sourceLineNo">110</span> checkStateSize(s, (NN + 1) * 8);<a name="line.110"></a> +<span class="sourceLineNo">111</span><a name="line.111"></a> +<span class="sourceLineNo">112</span> final long[] tmp = NumberFactory.makeLongArray(s);<a name="line.112"></a> +<span class="sourceLineNo">113</span> System.arraycopy(tmp, 0, mt, 0, NN);<a name="line.113"></a> +<span class="sourceLineNo">114</span> mti = (int) tmp[NN];<a name="line.114"></a> +<span class="sourceLineNo">115</span> }<a name="line.115"></a> +<span class="sourceLineNo">116</span><a name="line.116"></a> +<span class="sourceLineNo">117</span> /**<a name="line.117"></a> +<span class="sourceLineNo">118</span> * Initializes the generator with the given seed.<a name="line.118"></a> +<span class="sourceLineNo">119</span> *<a name="line.119"></a> +<span class="sourceLineNo">120</span> * @param seed Initial seed.<a name="line.120"></a> +<span class="sourceLineNo">121</span> */<a name="line.121"></a> +<span class="sourceLineNo">122</span> private void setSeedInternal(long[] seed) {<a name="line.122"></a> +<span class="sourceLineNo">123</span> if (seed.length == 0) {<a name="line.123"></a> +<span class="sourceLineNo">124</span> // Accept empty seed.<a name="line.124"></a> +<span class="sourceLineNo">125</span> seed = new long[1];<a name="line.125"></a> +<span class="sourceLineNo">126</span> }<a name="line.126"></a> +<span class="sourceLineNo">127</span><a name="line.127"></a> +<span class="sourceLineNo">128</span> initState(19650218L);<a name="line.128"></a> +<span class="sourceLineNo">129</span> int i = 1;<a name="line.129"></a> +<span class="sourceLineNo">130</span> int j = 0;<a name="line.130"></a> +<span class="sourceLineNo">131</span><a name="line.131"></a> +<span class="sourceLineNo">132</span> for (int k = Math.max(NN, seed.length); k != 0; k--) {<a name="line.132"></a> +<span class="sourceLineNo">133</span> final long mm1 = mt[i - 1];<a name="line.133"></a> +<span class="sourceLineNo">134</span> mt[i] = (mt[i] ^ ((mm1 ^ (mm1 >>> 62)) * 0x369dea0f31a53f85L)) + seed[j] + j; // non linear<a name="line.134"></a> +<span class="sourceLineNo">135</span> i++;<a name="line.135"></a> +<span class="sourceLineNo">136</span> j++;<a name="line.136"></a> +<span class="sourceLineNo">137</span> if (i >= NN) {<a name="line.137"></a> +<span class="sourceLineNo">138</span> mt[0] = mt[NN - 1];<a name="line.138"></a> +<span class="sourceLineNo">139</span> i = 1;<a name="line.139"></a> +<span class="sourceLineNo">140</span> }<a name="line.140"></a> +<span class="sourceLineNo">141</span> if (j >= seed.length) {<a name="line.141"></a> +<span class="sourceLineNo">142</span> j = 0;<a name="line.142"></a> +<span class="sourceLineNo">143</span> }<a name="line.143"></a> +<span class="sourceLineNo">144</span> }<a name="line.144"></a> +<span class="sourceLineNo">145</span> for (int k = NN - 1; k != 0; k--) {<a name="line.145"></a> +<span class="sourceLineNo">146</span> final long mm1 = mt[i - 1];<a name="line.146"></a> +<span class="sourceLineNo">147</span> mt[i] = (mt[i] ^ ((mm1 ^ (mm1 >>> 62)) * 0x27bb2ee687b0b0fdL)) - i; // non linear<a name="line.147"></a> +<span class="sourceLineNo">148</span> i++;<a name="line.148"></a> +<span class="sourceLineNo">149</span> if (i >= NN) {<a name="line.149"></a> +<span class="sourceLineNo">150</span> mt[0] = mt[NN - 1];<a name="line.150"></a> +<span class="sourceLineNo">151</span> i = 1;<a name="line.151"></a> +<span class="sourceLineNo">152</span> }<a name="line.152"></a> +<span class="sourceLineNo">153</span> }<a name="line.153"></a> +<span class="sourceLineNo">154</span><a name="line.154"></a> +<span class="sourceLineNo">155</span> mt[0] = 0x8000000000000000L; // MSB is 1; assuring non-zero initial array<a name="line.155"></a> +<span class="sourceLineNo">156</span> }<a name="line.156"></a> +<span class="sourceLineNo">157</span><a name="line.157"></a> +<span class="sourceLineNo">158</span> /**<a name="line.158"></a> +<span class="sourceLineNo">159</span> * Initialize the internal state of this instance.<a name="line.159"></a> +<span class="sourceLineNo">160</span> *<a name="line.160"></a> +<span class="sourceLineNo">161</span> * @param seed Seed.<a name="line.161"></a> +<span class="sourceLineNo">162</span> */<a name="line.162"></a> +<span class="sourceLineNo">163</span> private void initState(long seed) {<a name="line.163"></a> +<span class="sourceLineNo">164</span> mt[0] = seed;<a name="line.164"></a> +<span class="sourceLineNo">165</span> for (mti = 1; mti < NN; mti++) {<a name="line.165"></a> +<span class="sourceLineNo">166</span> final long mm1 = mt[mti - 1];<a name="line.166"></a> +<span class="sourceLineNo">167</span> mt[mti] = 0x5851f42d4c957f2dL * (mm1 ^ (mm1 >>> 62)) + mti;<a name="line.167"></a> +<span class="sourceLineNo">168</span> }<a name="line.168"></a> +<span class="sourceLineNo">169</span> }<a name="line.169"></a> +<span class="sourceLineNo">170</span><a name="line.170"></a> +<span class="sourceLineNo">171</span> /** {@inheritDoc} */<a name="line.171"></a> +<span class="sourceLineNo">172</span> @Override<a name="line.172"></a> +<span class="sourceLineNo">173</span> public long next() {<a name="line.173"></a> +<span class="sourceLineNo">174</span> long x;<a name="line.174"></a> +<span class="sourceLineNo">175</span><a name="line.175"></a> +<span class="sourceLineNo">176</span> if (mti >= NN) { // generate NN words at one time<a name="line.176"></a> +<span class="sourceLineNo">177</span> for (int i = 0; i < NN - MM; i++) {<a name="line.177"></a> +<span class="sourceLineNo">178</span> x = (mt[i] & UM) | (mt[i + 1] & LM);<a name="line.178"></a> +<span class="sourceLineNo">179</span> mt[i] = mt[i + MM] ^ (x >>> 1) ^ MAG01[(int)(x & 0x1L)];<a name="line.179"></a> +<span class="sourceLineNo">180</span> }<a name="line.180"></a> +<span class="sourceLineNo">181</span> for (int i = NN - MM; i < NN - 1; i++) {<a name="line.181"></a> +<span class="sourceLineNo">182</span> x = (mt[i] & UM) | (mt[i + 1] & LM);<a name="line.182"></a> +<span class="sourceLineNo">183</span> mt[i] = mt[ i + (MM - NN)] ^ (x >>> 1) ^ MAG01[(int)(x & 0x1L)];<a name="line.183"></a> +<span class="sourceLineNo">184</span> }<a name="line.184"></a> +<span class="sourceLineNo">185</span><a name="line.185"></a> +<span class="sourceLineNo">186</span> x = (mt[NN - 1] & UM) | (mt[0] & LM);<a name="line.186"></a> +<span class="sourceLineNo">187</span> mt[NN - 1] = mt[MM - 1] ^ (x >>> 1) ^ MAG01[(int)(x & 0x1L)];<a name="line.187"></a> +<span class="sourceLineNo">188</span><a name="line.188"></a> +<span class="sourceLineNo">189</span> mti = 0;<a name="line.189"></a> +<span class="sourceLineNo">190</span> }<a name="line.190"></a> +<span class="sourceLineNo">191</span><a name="line.191"></a> +<span class="sourceLineNo">192</span> x = mt[mti++];<a name="line.192"></a> +<span class="sourceLineNo">193</span><a name="line.193"></a> +<span class="sourceLineNo">194</span> x ^= (x >>> 29) & 0x5555555555555555L;<a name="line.194"></a> +<span class="sourceLineNo">195</span> x ^= (x << 17) & 0x71d67fffeda60000L;<a name="line.195"></a> +<span class="sourceLineNo">196</span> x ^= (x << 37) & 0xfff7eee000000000L;<a name="line.196"></a> +<span class="sourceLineNo">197</span> x ^= x >>> 43;<a name="line.197"></a> +<span class="sourceLineNo">198</span><a name="line.198"></a> +<span class="sourceLineNo">199</span> return x;<a name="line.199"></a> +<span class="sourceLineNo">200</span> }<a name="line.200"></a> +<span class="sourceLineNo">201</span>}<a name="line.201"></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/07/0795181fdf6459b5737f9e2e43b733d61ef4bc30.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/07/0795181fdf6459b5737f9e2e43b733d61ef4bc30.svn-base b/commons-rng-core/site-content/.svn/pristine/07/0795181fdf6459b5737f9e2e43b733d61ef4bc30.svn-base new file mode 100644 index 0000000..7f045e1 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/07/0795181fdf6459b5737f9e2e43b733d61ef4bc30.svn-base @@ -0,0 +1,58 @@ +<!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>SplitMix64Test xref</title> +<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../testapidocs/org/apache/commons/rng/internal/source64/SplitMix64Test.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.source64; +<a class="jxr_linenumber" name="L18" href="#L18">18</a> +<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong class="jxr_keyword">import</strong> org.junit.Assert; +<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> org.junit.Test; +<a class="jxr_linenumber" name="L21" href="#L21">21</a> +<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/SplitMix64Test.html">SplitMix64Test</a> { +<a class="jxr_linenumber" name="L23" href="#L23">23</a> @Test +<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReferenceCode() { +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> refSeed = 0x1a2b3c4d5e6f7531L; +<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">final</strong> SplitMix64 rng = <strong class="jxr_keyword">new</strong> SplitMix64(refSeed); +<a class="jxr_linenumber" name="L27" href="#L27">27</a> +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong>[] refValues = { +<a class="jxr_linenumber" name="L29" href="#L29">29</a> 0x4141302768c9e9d0L, 0x64df48c4eab51b1aL, 0x4e723b53dbd901b3L, 0xead8394409dd6454L, +<a class="jxr_linenumber" name="L30" href="#L30">30</a> 0x3ef60e485b412a0aL, 0xb2a23aee63aecf38L, 0x6cc3b8933c4fa332L, 0x9c9e75e031e6fccbL, +<a class="jxr_linenumber" name="L31" href="#L31">31</a> 0x0fddffb161c9f30fL, 0x2d1d75d4e75c12a3L, 0xcdcf9d2dde66da2eL, 0x278ba7d1d142cfecL, +<a class="jxr_linenumber" name="L32" href="#L32">32</a> 0x4ca423e66072e606L, 0x8f2c3c46ebc70bb7L, 0xc9def3b1eeae3e21L, 0x8e06670cd3e98bceL, +<a class="jxr_linenumber" name="L33" href="#L33">33</a> 0x2326dee7dd34747fL, 0x3c8fff64392bb3c1L, 0xfc6aa1ebe7916578L, 0x3191fb6113694e70L, +<a class="jxr_linenumber" name="L34" href="#L34">34</a> 0x3453605f6544dac6L, 0x86cf93e5cdf81801L, 0x0d764d7e59f724dfL, 0xae1dfb943ebf8659L, +<a class="jxr_linenumber" name="L35" href="#L35">35</a> 0x012de1babb3c4104L, 0xa5a818b8fc5aa503L, 0xb124ea2b701f4993L, 0x18e0374933d8c782L, +<a class="jxr_linenumber" name="L36" href="#L36">36</a> 0x2af8df668d68ad55L, 0x76e56f59daa06243L, 0xf58c016f0f01e30fL, 0x8eeafa41683dbbf4L, +<a class="jxr_linenumber" name="L37" href="#L37">37</a> 0x7bf121347c06677fL, 0x4fd0c88d25db5ccbL, 0x99af3be9ebe0a272L, 0x94f2b33b74d0bdcbL, +<a class="jxr_linenumber" name="L38" href="#L38">38</a> 0x24b5d9d7a00a3140L, 0x79d983d781a34a3cL, 0x582e4a84d595f5ecL, 0x7316fe8b0f606d20L, +<a class="jxr_linenumber" name="L39" href="#L39">39</a> }; +<a class="jxr_linenumber" name="L40" href="#L40">40</a> +<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < refValues.length; ++i) { +<a class="jxr_linenumber" name="L42" href="#L42">42</a> Assert.assertEquals(refValues[i], rng.nextLong()); +<a class="jxr_linenumber" name="L43" href="#L43">43</a> } +<a class="jxr_linenumber" name="L44" href="#L44">44</a> } +<a class="jxr_linenumber" name="L45" href="#L45">45</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/0a/0ad13d1ce3aa6dbc47f2b8f7aecdf896e2c31087.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/0a/0ad13d1ce3aa6dbc47f2b8f7aecdf896e2c31087.svn-base b/commons-rng-core/site-content/.svn/pristine/0a/0ad13d1ce3aa6dbc47f2b8f7aecdf896e2c31087.svn-base new file mode 100644 index 0000000..69a8a45 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/0a/0ad13d1ce3aa6dbc47f2b8f7aecdf896e2c31087.svn-base @@ -0,0 +1,287 @@ +<!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 – CI Management</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="expanded"> + <a href="project-info.html" title="Project Information"> + Project Information</a> + <ul> + <li class="none"> + <a href="index.html" title="About"> + About</a> + </li> + <li class="none"> + <a href="project-summary.html" title="Summary"> + Summary</a> + </li> + <li class="none"> + <a href="team-list.html" title="Team"> + Team</a> + </li> + <li class="none"> + <a href="source-repository.html" title="Source Code Management"> + Source Code Management</a> + </li> + <li class="none"> + <a href="issue-tracking.html" title="Issue Management"> + Issue Management</a> + </li> + <li class="none"> + <a href="mail-lists.html" title="Mailing Lists"> + Mailing Lists</a> + </li> + <li class="none"> + <a href="dependency-info.html" title="Dependency Information"> + Dependency Information</a> + </li> + <li class="none"> + <a href="dependencies.html" title="Dependencies"> + Dependencies</a> + </li> + <li class="none"> + <a href="dependency-convergence.html" title="Dependency Convergence"> + Dependency Convergence</a> + </li> + <li class="none active"> + <a href="integration.html" title="CI Management"> + CI Management</a> + </li> + <li class="none"> + <a href="distribution-management.html" title="Distribution Management"> + Distribution Management</a> + </li> + </ul> + </li> + <li class="collapsed"> + <a href="project-reports.html" title="Project Reports"> + Project Reports</a> + </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="Overview"></a>Overview</h2><a name="Overview"></a> +<p>This project uses <a class="externalLink" href="http://jenkins-ci.org/">Jenkins</a>.</p></div> +<div class="section"> +<h2><a name="Access"></a>Access</h2><a name="Access"></a> +<p>The following is a link to the continuous integration system used by the project:</p> +<div class="source"> +<pre><a class="externalLink" href="https://builds.apache.org/">https://builds.apache.org/</a></pre></div></div> +<div class="section"> +<h2><a name="Notifiers"></a>Notifiers</h2><a name="Notifiers"></a> +<p>No notifiers are defined. Please check back at a later date.</p></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/0b/0b484cec2f9364d86302a022b91f2acd720abc74.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/0b/0b484cec2f9364d86302a022b91f2acd720abc74.svn-base b/commons-rng-core/site-content/.svn/pristine/0b/0b484cec2f9364d86302a022b91f2acd720abc74.svn-base new file mode 100644 index 0000000..9451c05 --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/0b/0b484cec2f9364d86302a022b91f2acd720abc74.svn-base @@ -0,0 +1 @@ +<?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>MersenneTwister</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><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.html" class="el_package">org.apache.commons.rng.internal.source32</a> > <span class="el_class">MersenneTwister</span></div><h1>MersenneTwister</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><t r><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 448</td><td class="ctr2">100%</td><td class="bar">0 of 28</td><td class="ctr2">100%</td><td class="ctr1">0</td><td class="ctr2">21</td><td c lass="ctr1">0</td><td class="ctr2">70</td><td class="ctr1">0</td><td class="ctr2">7</td></tr></tfoot><tbody><tr><td id="a0"><a href="MersenneTwister.java.html#L160" class="el_method">fillStateMersenneTwister(int[], int[])</a></td><td class="bar" id="b0"><img src="../.resources/greenbar.gif" width="120" height="10" title="215" alt="215"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../.resources/greenbar.gif" width="120" height="10" title="22" alt="22"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">12</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">33</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="MersenneTwister.java.html#L213" class="el_method">next()</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="94" height="10" title="170" alt="170"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"><img src="../.resou rces/greenbar.gif" width="32" height="10" title="6" alt="6"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">4</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">21</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a5"><a href="MersenneTwister.java.html#L130" class="el_method">setStateInternal(byte[])</a></td><td class="bar" id="b2"><img src="../.resources/greenbar.gif" width="11" height="10" title="20" alt="20"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">5</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a1"><a href="MersenneTwister.java.html#L121" class="el_method">getStateInternal()</a></td><td class="bar" id="b3"><img src="../.resources/greenbar.gif" width="7" height="10" title="13" alt="1 3"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i4">3</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a6"><a href="MersenneTwister.java.html#L103" class="el_method">static {...}</a></td><td class="bar" id="b4"><img src="../.resources/greenbar.gif" width="6" height="10" title="12" alt="12"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a2"><a href="MersenneTwister.java.html#L105" class="el_method">MersenneTwister(int[])</a></td><td class="bar" id="b5"><img src="../.resources/greenbar.gif" width="5" height="10" title="10" alt="10"/></td> <td class="ctr2" id="c5">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i3">4</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a4"><a href="MersenneTwister.java.html#L143" class="el_method">setSeedInternal(int[])</a></td><td class="bar" id="b6"><img src="../.resources/greenbar.gif" width="4" height="10" title="8" alt="8"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i5">3</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr></tbody></table><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/0b/0b70970276a344d5d21259fd82d1dc4fb7ee5aa5.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/0b/0b70970276a344d5d21259fd82d1dc4fb7ee5aa5.svn-base b/commons-rng-core/site-content/.svn/pristine/0b/0b70970276a344d5d21259fd82d1dc4fb7ee5aa5.svn-base new file mode 100644 index 0000000..632617b --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/0b/0b70970276a344d5d21259fd82d1dc4fb7ee5aa5.svn-base @@ -0,0 +1,39 @@ +<?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>IntArray2LongArray.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">IntArray2LongArray. java</span></div><h1>IntArray2LongArray.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; + +/** + * Creates a {@code long[]} from an {@code int[]}. + * + * @since 1.0 + */ +<span class="fc" id="L24">public class IntArray2LongArray implements SeedConverter<int[], long[]> {</span> + /** {@inheritDoc} */ + @Override + public long[] convert(int[] seed) { +<span class="fc" id="L28"> final int outSize = (seed.length + 1) / 2;</span> +<span class="fc" id="L29"> final long[] out = new long[outSize];</span> +<span class="fc bfc" id="L30" title="All 2 branches covered."> for (int i = 0; i < outSize; i++) {</span> +<span class="fc" id="L31"> final int lo = seed[i];</span> +<span class="fc bfc" id="L32" title="All 2 branches covered."> final int hi = outSize + i < seed.length ? seed[outSize + i] : 0;</span> +<span class="fc" id="L33"> out[i] = NumberFactory.makeLong(hi, lo);</span> + } + +<span class="fc" id="L36"> return out;</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/0b/0b82318a594cda08d13a92ec19ce12ce108c29a5.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/0b/0b82318a594cda08d13a92ec19ce12ce108c29a5.svn-base b/commons-rng-core/site-content/.svn/pristine/0b/0b82318a594cda08d13a92ec19ce12ce108c29a5.svn-base new file mode 100644 index 0000000..10265ab --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/0b/0b82318a594cda08d13a92ec19ce12ce108c29a5.svn-base @@ -0,0 +1,116 @@ +<!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.util;<a name="line.17"></a> +<span class="sourceLineNo">018</span><a name="line.18"></a> +<span class="sourceLineNo">019</span>import org.apache.commons.rng.internal.source64.SplitMix64;<a name="line.19"></a> +<span class="sourceLineNo">020</span><a name="line.20"></a> +<span class="sourceLineNo">021</span>/**<a name="line.21"></a> +<span class="sourceLineNo">022</span> * Uses a {@code long} value to seed a {@link SplitMix64} RNG and<a name="line.22"></a> +<span class="sourceLineNo">023</span> * create a {@code int[]} with the requested number of random<a name="line.23"></a> +<span class="sourceLineNo">024</span> * values.<a name="line.24"></a> +<span class="sourceLineNo">025</span> *<a name="line.25"></a> +<span class="sourceLineNo">026</span> * @since 1.0<a name="line.26"></a> +<span class="sourceLineNo">027</span> */<a name="line.27"></a> +<span class="sourceLineNo">028</span>public class Long2IntArray implements SeedConverter<Long, int[]> {<a name="line.28"></a> +<span class="sourceLineNo">029</span> /** Size of the output array. */<a name="line.29"></a> +<span class="sourceLineNo">030</span> private final int size;<a name="line.30"></a> +<span class="sourceLineNo">031</span><a name="line.31"></a> +<span class="sourceLineNo">032</span> /**<a name="line.32"></a> +<span class="sourceLineNo">033</span> * @param size Size of the output array.<a name="line.33"></a> +<span class="sourceLineNo">034</span> */<a name="line.34"></a> +<span class="sourceLineNo">035</span> public Long2IntArray(int size) {<a name="line.35"></a> +<span class="sourceLineNo">036</span> this.size = size;<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> /** {@inheritDoc} */<a name="line.39"></a> +<span class="sourceLineNo">040</span> @Override<a name="line.40"></a> +<span class="sourceLineNo">041</span> public int[] convert(Long seed) {<a name="line.41"></a> +<span class="sourceLineNo">042</span> return SeedFactory.createIntArray(size, new SplitMix64(seed));<a name="line.42"></a> +<span class="sourceLineNo">043</span> }<a name="line.43"></a> +<span class="sourceLineNo">044</span>}<a name="line.44"></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/0c/0c013cc53db8b6353f4d445373767546b0f113e1.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/0c/0c013cc53db8b6353f4d445373767546b0f113e1.svn-base b/commons-rng-core/site-content/.svn/pristine/0c/0c013cc53db8b6353f4d445373767546b0f113e1.svn-base new file mode 100644 index 0000000..989b46d Binary files /dev/null and b/commons-rng-core/site-content/.svn/pristine/0c/0c013cc53db8b6353f4d445373767546b0f113e1.svn-base differ