http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/00/0062f6ff5058762551f99b63a17f4c9fa06e65b0.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/0062f6ff5058762551f99b63a17f4c9fa06e65b0.svn-base b/site-content/.svn/pristine/00/0062f6ff5058762551f99b63a17f4c9fa06e65b0.svn-base deleted file mode 100644 index cfc3767..0000000 --- a/site-content/.svn/pristine/00/0062f6ff5058762551f99b63a17f4c9fa06e65b0.svn-base +++ /dev/null @@ -1,166 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!-- NewPage --> -<html lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>org.apache.commons.math3.stat.descriptive Class Hierarchy (Apache Commons Math 3.6.1 API)</title> -<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> -</head> -<body> -<script type="text/javascript"><!-- - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="org.apache.commons.math3.stat.descriptive Class Hierarchy (Apache Commons Math 3.6.1 API)"; - } -//--> -</script> -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<!-- ========= START OF TOP NAVBAR ======= --> -<div class="topNav"><a name="navbar_top"> -<!-- --> -</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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</li> -<li>Use</li> -<li class="navBarCell1Rev">Tree</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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> -</div> -<div class="subNav"> -<ul class="navList"> -<li><a href="../../../../../../org/apache/commons/math3/stat/correlation/package-tree.html">Prev</a></li> -<li><a href="../../../../../../org/apache/commons/math3/stat/descriptive/moment/package-tree.html">Next</a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../index.html?org/apache/commons/math3/stat/descriptive/package-tree.html" target="_top">Frames</a></li> -<li><a href="package-tree.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"> -<h1 class="title">Hierarchy For Package org.apache.commons.math3.stat.descriptive</h1> -<span class="strong">Package Hierarchies:</span> -<ul class="horizontal"> -<li><a href="../../../../../../overview-tree.html">All Packages</a></li> -</ul> -</div> -<div class="contentContainer"> -<h2 title="Class Hierarchy">Class Hierarchy</h2> -<ul> -<li type="circle">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"><span class="strong">Object</span></a> -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/AbstractUnivariateStatistic.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">AbstractUnivariateStatistic</span></a> (implements org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/UnivariateStatistic.html" title="interface in org.apache.commons.math3.stat.descriptive">UnivariateStatistic</a>) -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/AbstractStorelessUnivariateStatistic.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">AbstractStorelessUnivariateStatistic</span></a> (implements org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatistic.html" title="interface in org.apache.commons.math3.stat.descriptive">StorelessUnivariateStatistic</a>)</li> -</ul> -</li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/AggregateSummaryStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">AggregateSummaryStatistics</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.commons.math3.stat.descriptive">StatisticalSummary</a>)</li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/DescriptiveStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">DescriptiveStatistics</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.commons.math3.stat.descriptive">StatisticalSummary</a>) -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/SynchronizedDescriptiveStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">SynchronizedDescriptiveStatistics</span></a></li> -</ul> -</li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/MultivariateSummaryStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">MultivariateSummaryStatistics</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalMultivariateSummary.html" title="interface in org.apache.commons.math3.stat.descriptive">StatisticalMultivariateSummary</a>) -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/SynchronizedMultivariateSummaryStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">SynchronizedMultivariateSummaryStatistics</span></a></li> -</ul> -</li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalSummaryValues.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">StatisticalSummaryValues</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.commons.math3.stat.descriptive">StatisticalSummary</a>)</li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/SummaryStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">SummaryStatistics</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.commons.math3.stat.descriptive">StatisticalSummary</a>) -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/SynchronizedSummaryStatistics.html" title="class in org.apache.commons.math3.stat.descriptive"><span class="strong">SynchronizedSummaryStatistics</span></a></li> -</ul> -</li> -</ul> -</li> -</ul> -<h2 title="Interface Hierarchy">Interface Hierarchy</h2> -<ul> -<li type="circle">org.apache.commons.math3.util.<a href="../../../../../../org/apache/commons/math3/util/MathArrays.Function.html" title="interface in org.apache.commons.math3.util"><span class="strong">MathArrays.Function</span></a> -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/UnivariateStatistic.html" title="interface in org.apache.commons.math3.stat.descriptive"><span class="strong">UnivariateStatistic</span></a> -<ul> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StorelessUnivariateStatistic.html" title="interface in org.apache.commons.math3.stat.descriptive"><span class="strong">StorelessUnivariateStatistic</span></a></li> -</ul> -</li> -</ul> -</li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalMultivariateSummary.html" title="interface in org.apache.commons.math3.stat.descriptive"><span class="strong">StatisticalMultivariateSummary</span></a></li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/StatisticalSummary.html" title="interface in org.apache.commons.math3.stat.descriptive"><span class="strong">StatisticalSummary</span></a></li> -<li type="circle">org.apache.commons.math3.stat.descriptive.<a href="../../../../../../org/apache/commons/math3/stat/descriptive/WeightedEvaluation.html" title="interface in org.apache.commons.math3.stat.descriptive"><span class="strong">WeightedEvaluation</span></a></li> -</ul> -</div> -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<div class="bottomNav"><a name="navbar_bottom"> -<!-- --> -</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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</li> -<li>Use</li> -<li class="navBarCell1Rev">Tree</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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> -</div> -<div class="subNav"> -<ul class="navList"> -<li><a href="../../../../../../org/apache/commons/math3/stat/correlation/package-tree.html">Prev</a></li> -<li><a href="../../../../../../org/apache/commons/math3/stat/descriptive/moment/package-tree.html">Next</a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../index.html?org/apache/commons/math3/stat/descriptive/package-tree.html" target="_top">Frames</a></li> -<li><a href="package-tree.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 © 2003–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> -</body> -</html>
http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/00/0075318a7def8d87ce5330d1c6fe0c71c077eef9.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/0075318a7def8d87ce5330d1c6fe0c71c077eef9.svn-base b/site-content/.svn/pristine/00/0075318a7def8d87ce5330d1c6fe0c71c077eef9.svn-base deleted file mode 100644 index 4e403e9..0000000 --- a/site-content/.svn/pristine/00/0075318a7def8d87ce5330d1c6fe0c71c077eef9.svn-base +++ /dev/null @@ -1,242 +0,0 @@ -<!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 this<a name="line.3"></a> -<span class="sourceLineNo">004</span> * work for additional information regarding copyright ownership. The ASF<a name="line.4"></a> -<span class="sourceLineNo">005</span> * licenses this file to You under the Apache License, Version 2.0 (the<a name="line.5"></a> -<span class="sourceLineNo">006</span> * "License"); you may not use this file except in compliance with the License.<a name="line.6"></a> -<span class="sourceLineNo">007</span> * You may obtain a copy of the License at<a name="line.7"></a> -<span class="sourceLineNo">008</span> * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law<a name="line.8"></a> -<span class="sourceLineNo">009</span> * or agreed to in writing, software distributed under the License is<a name="line.9"></a> -<span class="sourceLineNo">010</span> * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.10"></a> -<span class="sourceLineNo">011</span> * KIND, either express or implied. See the License for the specific language<a name="line.11"></a> -<span class="sourceLineNo">012</span> * governing permissions and limitations under the License.<a name="line.12"></a> -<span class="sourceLineNo">013</span> */<a name="line.13"></a> -<span class="sourceLineNo">014</span>package org.apache.commons.math3.distribution;<a name="line.14"></a> -<span class="sourceLineNo">015</span><a name="line.15"></a> -<span class="sourceLineNo">016</span>import org.junit.Assert;<a name="line.16"></a> -<span class="sourceLineNo">017</span>import org.junit.Test;<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> * Test cases for GeometricDistribution.<a name="line.20"></a> -<span class="sourceLineNo">021</span> * <p><a name="line.21"></a> -<span class="sourceLineNo">022</span> * See class javadoc for IntegerDistributionAbstractTest for details.<a name="line.22"></a> -<span class="sourceLineNo">023</span> *<a name="line.23"></a> -<span class="sourceLineNo">024</span> * @since 3.3<a name="line.24"></a> -<span class="sourceLineNo">025</span> */<a name="line.25"></a> -<span class="sourceLineNo">026</span>public class GeometricDistributionTest extends IntegerDistributionAbstractTest {<a name="line.26"></a> -<span class="sourceLineNo">027</span><a name="line.27"></a> -<span class="sourceLineNo">028</span> /**<a name="line.28"></a> -<span class="sourceLineNo">029</span> * Constructor to override default tolerance.<a name="line.29"></a> -<span class="sourceLineNo">030</span> */<a name="line.30"></a> -<span class="sourceLineNo">031</span> public GeometricDistributionTest() {<a name="line.31"></a> -<span class="sourceLineNo">032</span> setTolerance(1e-12);<a name="line.32"></a> -<span class="sourceLineNo">033</span> }<a name="line.33"></a> -<span class="sourceLineNo">034</span> <a name="line.34"></a> -<span class="sourceLineNo">035</span> // -------------- Implementations for abstract methods --------------------<a name="line.35"></a> -<span class="sourceLineNo">036</span><a name="line.36"></a> -<span class="sourceLineNo">037</span> /** Creates the default discrete distribution instance to use in tests. */<a name="line.37"></a> -<span class="sourceLineNo">038</span> @Override<a name="line.38"></a> -<span class="sourceLineNo">039</span> public IntegerDistribution makeDistribution() {<a name="line.39"></a> -<span class="sourceLineNo">040</span> return new GeometricDistribution(0.40);<a name="line.40"></a> -<span class="sourceLineNo">041</span> }<a name="line.41"></a> -<span class="sourceLineNo">042</span><a name="line.42"></a> -<span class="sourceLineNo">043</span> /** Creates the default probability density test input values */<a name="line.43"></a> -<span class="sourceLineNo">044</span> @Override<a name="line.44"></a> -<span class="sourceLineNo">045</span> public int[] makeDensityTestPoints() {<a name="line.45"></a> -<span class="sourceLineNo">046</span> return new int[] { -1, 0, 1, 2, 3, 4, 5, 6, 7, 8,<a name="line.46"></a> -<span class="sourceLineNo">047</span> 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,<a name="line.47"></a> -<span class="sourceLineNo">048</span> 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 };<a name="line.48"></a> -<span class="sourceLineNo">049</span> }<a name="line.49"></a> -<span class="sourceLineNo">050</span><a name="line.50"></a> -<span class="sourceLineNo">051</span> /**<a name="line.51"></a> -<span class="sourceLineNo">052</span> * Creates the default probability density test expected values.<a name="line.52"></a> -<span class="sourceLineNo">053</span> * Reference values are from R, version version 2.15.3.<a name="line.53"></a> -<span class="sourceLineNo">054</span> */<a name="line.54"></a> -<span class="sourceLineNo">055</span> @Override<a name="line.55"></a> -<span class="sourceLineNo">056</span> public double[] makeDensityTestValues() {<a name="line.56"></a> -<span class="sourceLineNo">057</span> return new double[] {<a name="line.57"></a> -<span class="sourceLineNo">058</span> 0d, 0.4, 0.24, 0.144, 0.0864, 0.05184, 0.031104, 0.0186624,<a name="line.58"></a> -<span class="sourceLineNo">059</span> 0.01119744, 0.006718464, 0.0040310784, 0.00241864704,<a name="line.59"></a> -<span class="sourceLineNo">060</span> 0.001451188224,0.0008707129344, 0.00052242776064, 0.000313456656384,<a name="line.60"></a> -<span class="sourceLineNo">061</span> 0.00018807399383, 0.000112844396298, 6.77066377789e-05, 4.06239826674e-05,<a name="line.61"></a> -<span class="sourceLineNo">062</span> 2.43743896004e-05, 1.46246337603e-05, 8.77478025615e-06, 5.26486815369e-06,<a name="line.62"></a> -<span class="sourceLineNo">063</span> 3.15892089221e-06, 1.89535253533e-06, 1.1372115212e-06, 6.82326912718e-07,<a name="line.63"></a> -<span class="sourceLineNo">064</span> 4.09396147631e-07, 2.45637688579e-07<a name="line.64"></a> -<span class="sourceLineNo">065</span> };<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> /**<a name="line.68"></a> -<span class="sourceLineNo">069</span> * Creates the default log probability density test expected values.<a name="line.69"></a> -<span class="sourceLineNo">070</span> * Reference values are from R, version version 2.14.1.<a name="line.70"></a> -<span class="sourceLineNo">071</span> */<a name="line.71"></a> -<span class="sourceLineNo">072</span> @Override<a name="line.72"></a> -<span class="sourceLineNo">073</span> public double[] makeLogDensityTestValues() {<a name="line.73"></a> -<span class="sourceLineNo">074</span> return new double[] {<a name="line.74"></a> -<span class="sourceLineNo">075</span> Double.NEGATIVE_INFINITY, -0.916290731874155, -1.42711635564015, -1.93794197940614,<a name="line.75"></a> -<span class="sourceLineNo">076</span> -2.44876760317213, -2.95959322693812, -3.47041885070411, -3.9812444744701,<a name="line.76"></a> -<span class="sourceLineNo">077</span> -4.49207009823609, -5.00289572200208, -5.51372134576807, -6.02454696953406,<a name="line.77"></a> -<span class="sourceLineNo">078</span> -6.53537259330005, -7.04619821706604, -7.55702384083203, -8.06784946459802,<a name="line.78"></a> -<span class="sourceLineNo">079</span> -8.57867508836402, -9.08950071213001, -9.600326335896, -10.111151959662,<a name="line.79"></a> -<span class="sourceLineNo">080</span> -10.621977583428, -11.132803207194, -11.64362883096, -12.154454454726,<a name="line.80"></a> -<span class="sourceLineNo">081</span> -12.6652800784919, -13.1761057022579, -13.6869313260239, -14.1977569497899,<a name="line.81"></a> -<span class="sourceLineNo">082</span> -14.7085825735559, -15.2194081973219<a name="line.82"></a> -<span class="sourceLineNo">083</span> };<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> /** Creates the default cumulative probability density test input values */<a name="line.86"></a> -<span class="sourceLineNo">087</span> @Override<a name="line.87"></a> -<span class="sourceLineNo">088</span> public int[] makeCumulativeTestPoints() {<a name="line.88"></a> -<span class="sourceLineNo">089</span> return makeDensityTestPoints();<a name="line.89"></a> -<span class="sourceLineNo">090</span> }<a name="line.90"></a> -<span class="sourceLineNo">091</span><a name="line.91"></a> -<span class="sourceLineNo">092</span> /** Creates the default cumulative probability density test expected values */<a name="line.92"></a> -<span class="sourceLineNo">093</span> @Override<a name="line.93"></a> -<span class="sourceLineNo">094</span> public double[] makeCumulativeTestValues() {<a name="line.94"></a> -<span class="sourceLineNo">095</span> final double[] densities = makeDensityTestValues();<a name="line.95"></a> -<span class="sourceLineNo">096</span> final int n = densities.length;<a name="line.96"></a> -<span class="sourceLineNo">097</span> final double[] ret = new double[n];<a name="line.97"></a> -<span class="sourceLineNo">098</span> ret[0] = densities[0];<a name="line.98"></a> -<span class="sourceLineNo">099</span> for (int i = 1; i < n; i++) {<a name="line.99"></a> -<span class="sourceLineNo">100</span> ret[i] = ret[i - 1] + densities[i];<a name="line.100"></a> -<span class="sourceLineNo">101</span> }<a name="line.101"></a> -<span class="sourceLineNo">102</span> return ret;<a name="line.102"></a> -<span class="sourceLineNo">103</span> }<a name="line.103"></a> -<span class="sourceLineNo">104</span><a name="line.104"></a> -<span class="sourceLineNo">105</span> /** Creates the default inverse cumulative probability test input values */<a name="line.105"></a> -<span class="sourceLineNo">106</span> @Override<a name="line.106"></a> -<span class="sourceLineNo">107</span> public double[] makeInverseCumulativeTestPoints() {<a name="line.107"></a> -<span class="sourceLineNo">108</span> return new double[] {<a name="line.108"></a> -<span class="sourceLineNo">109</span> 0.000, 0.005, 0.010, 0.015, 0.020, 0.025, 0.030, 0.035, 0.040,<a name="line.109"></a> -<span class="sourceLineNo">110</span> 0.045, 0.050, 0.055, 0.060, 0.065, 0.070, 0.075, 0.080, 0.085,<a name="line.110"></a> -<span class="sourceLineNo">111</span> 0.090, 0.095, 0.100, 0.105, 0.110, 0.115, 0.120, 0.125, 0.130,<a name="line.111"></a> -<span class="sourceLineNo">112</span> 0.135, 0.140, 0.145, 0.150, 0.155, 0.160, 0.165, 0.170, 0.175,<a name="line.112"></a> -<span class="sourceLineNo">113</span> 0.180, 0.185, 0.190, 0.195, 0.200, 0.205, 0.210, 0.215, 0.220,<a name="line.113"></a> -<span class="sourceLineNo">114</span> 0.225, 0.230, 0.235, 0.240, 0.245, 0.250, 0.255, 0.260, 0.265,<a name="line.114"></a> -<span class="sourceLineNo">115</span> 0.270, 0.275, 0.280, 0.285, 0.290, 0.295, 0.300, 0.305, 0.310,<a name="line.115"></a> -<span class="sourceLineNo">116</span> 0.315, 0.320, 0.325, 0.330, 0.335, 0.340, 0.345, 0.350, 0.355,<a name="line.116"></a> -<span class="sourceLineNo">117</span> 0.360, 0.365, 0.370, 0.375, 0.380, 0.385, 0.390, 0.395, 0.400,<a name="line.117"></a> -<span class="sourceLineNo">118</span> 0.405, 0.410, 0.415, 0.420, 0.425, 0.430, 0.435, 0.440, 0.445,<a name="line.118"></a> -<span class="sourceLineNo">119</span> 0.450, 0.455, 0.460, 0.465, 0.470, 0.475, 0.480, 0.485, 0.490,<a name="line.119"></a> -<span class="sourceLineNo">120</span> 0.495, 0.500, 0.505, 0.510, 0.515, 0.520, 0.525, 0.530, 0.535,<a name="line.120"></a> -<span class="sourceLineNo">121</span> 0.540, 0.545, 0.550, 0.555, 0.560, 0.565, 0.570, 0.575, 0.580,<a name="line.121"></a> -<span class="sourceLineNo">122</span> 0.585, 0.590, 0.595, 0.600, 0.605, 0.610, 0.615, 0.620, 0.625,<a name="line.122"></a> -<span class="sourceLineNo">123</span> 0.630, 0.635, 0.640, 0.645, 0.650, 0.655, 0.660, 0.665, 0.670,<a name="line.123"></a> -<span class="sourceLineNo">124</span> 0.675, 0.680, 0.685, 0.690, 0.695, 0.700, 0.705, 0.710, 0.715,<a name="line.124"></a> -<span class="sourceLineNo">125</span> 0.720, 0.725, 0.730, 0.735, 0.740, 0.745, 0.750, 0.755, 0.760,<a name="line.125"></a> -<span class="sourceLineNo">126</span> 0.765, 0.770, 0.775, 0.780, 0.785, 0.790, 0.795, 0.800, 0.805,<a name="line.126"></a> -<span class="sourceLineNo">127</span> 0.810, 0.815, 0.820, 0.825, 0.830, 0.835, 0.840, 0.845, 0.850,<a name="line.127"></a> -<span class="sourceLineNo">128</span> 0.855, 0.860, 0.865, 0.870, 0.875, 0.880, 0.885, 0.890, 0.895,<a name="line.128"></a> -<span class="sourceLineNo">129</span> 0.900, 0.905, 0.910, 0.915, 0.920, 0.925, 0.930, 0.935, 0.940,<a name="line.129"></a> -<span class="sourceLineNo">130</span> 0.945, 0.950, 0.955, 0.960, 0.965, 0.970, 0.975, 0.980, 0.985,<a name="line.130"></a> -<span class="sourceLineNo">131</span> 0.990, 0.995<a name="line.131"></a> -<span class="sourceLineNo">132</span> };<a name="line.132"></a> -<span class="sourceLineNo">133</span> }<a name="line.133"></a> -<span class="sourceLineNo">134</span><a name="line.134"></a> -<span class="sourceLineNo">135</span> /**<a name="line.135"></a> -<span class="sourceLineNo">136</span> * Creates the default inverse cumulative probability density test expected<a name="line.136"></a> -<span class="sourceLineNo">137</span> * values<a name="line.137"></a> -<span class="sourceLineNo">138</span> */<a name="line.138"></a> -<span class="sourceLineNo">139</span> @Override<a name="line.139"></a> -<span class="sourceLineNo">140</span> public int[] makeInverseCumulativeTestValues() {<a name="line.140"></a> -<span class="sourceLineNo">141</span> return new int[] {<a name="line.141"></a> -<span class="sourceLineNo">142</span> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<a name="line.142"></a> -<span class="sourceLineNo">143</span> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<a name="line.143"></a> -<span class="sourceLineNo">144</span> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,<a name="line.144"></a> -<span class="sourceLineNo">145</span> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1,<a name="line.145"></a> -<span class="sourceLineNo">146</span> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,<a name="line.146"></a> -<span class="sourceLineNo">147</span> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,<a name="line.147"></a> -<span class="sourceLineNo">148</span> 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,<a name="line.148"></a> -<span class="sourceLineNo">149</span> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,<a name="line.149"></a> -<span class="sourceLineNo">150</span> 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5,<a name="line.150"></a> -<span class="sourceLineNo">151</span> 5, 5, 6, 6, 6, 6, 7, 7, 8, 9, 10<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> // ----------------- Additional test cases ---------------------------------<a name="line.155"></a> -<span class="sourceLineNo">156</span><a name="line.156"></a> -<span class="sourceLineNo">157</span> @Test<a name="line.157"></a> -<span class="sourceLineNo">158</span> public void testMoments() {<a name="line.158"></a> -<span class="sourceLineNo">159</span> final double tol = 1e-9;<a name="line.159"></a> -<span class="sourceLineNo">160</span> GeometricDistribution dist;<a name="line.160"></a> -<span class="sourceLineNo">161</span><a name="line.161"></a> -<span class="sourceLineNo">162</span> dist = new GeometricDistribution(0.5);<a name="line.162"></a> -<span class="sourceLineNo">163</span> Assert.assertEquals(dist.getNumericalMean(), (1.0d - 0.5d) / 0.5d, tol);<a name="line.163"></a> -<span class="sourceLineNo">164</span> Assert.assertEquals(dist.getNumericalVariance(), (1.0d - 0.5d) / (0.5d * 0.5d), tol);<a name="line.164"></a> -<span class="sourceLineNo">165</span><a name="line.165"></a> -<span class="sourceLineNo">166</span> dist = new GeometricDistribution(0.3);<a name="line.166"></a> -<span class="sourceLineNo">167</span> Assert.assertEquals(dist.getNumericalMean(), (1.0d - 0.3d) / 0.3d, tol);<a name="line.167"></a> -<span class="sourceLineNo">168</span> Assert.assertEquals(dist.getNumericalVariance(), (1.0d - 0.3d) / (0.3d * 0.3d), tol);<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> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</pre> -</div> -</body> -</html> http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/00/008860ff6b81bddba1ec0fe01c6b9371a3015f17.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/008860ff6b81bddba1ec0fe01c6b9371a3015f17.svn-base b/site-content/.svn/pristine/00/008860ff6b81bddba1ec0fe01c6b9371a3015f17.svn-base deleted file mode 100644 index 003ee15..0000000 --- a/site-content/.svn/pristine/00/008860ff6b81bddba1ec0fe01c6b9371a3015f17.svn-base +++ /dev/null @@ -1,163 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!-- NewPage --> -<html lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>Uses of Class org.apache.commons.math3.ode.nonstiff.AdamsNordsieckFieldTransformer (Apache Commons Math 3.6.1 API)</title> -<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> -</head> -<body> -<script type="text/javascript"><!-- - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Class org.apache.commons.math3.ode.nonstiff.AdamsNordsieckFieldTransformer (Apache Commons Math 3.6.1 API)"; - } -//--> -</script> -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<!-- ========= START OF TOP NAVBAR ======= --> -<div class="topNav"><a name="navbar_top"> -<!-- --> -</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html" title="class in org.apache.commons.math3.ode.nonstiff">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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></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/math3/ode/nonstiff/class-use/AdamsNordsieckFieldTransformer.html" target="_top">Frames</a></li> -<li><a href="AdamsNordsieckFieldTransformer.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.math3.ode.nonstiff.AdamsNordsieckFieldTransformer" class="title">Uses of Class<br>org.apache.commons.math3.ode.nonstiff.AdamsNordsieckFieldTransformer</h2> -</div> -<div class="classUseContainer"> -<ul class="blockList"> -<li class="blockList"> -<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> -<caption><span>Packages that use <a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html" title="class in org.apache.commons.math3.ode.nonstiff">AdamsNordsieckFieldTransformer</a></span><span class="tabEnd"> </span></caption> -<tr> -<th class="colFirst" scope="col">Package</th> -<th class="colLast" scope="col">Description</th> -</tr> -<tbody> -<tr class="altColor"> -<td class="colFirst"><a href="#org.apache.commons.math3.ode.nonstiff">org.apache.commons.math3.ode.nonstiff</a></td> -<td class="colLast"> -<div class="block"> - This package provides classes to solve non-stiff Ordinary Differential Equations problems.</div> -</td> -</tr> -</tbody> -</table> -</li> -<li class="blockList"> -<ul class="blockList"> -<li class="blockList"><a name="org.apache.commons.math3.ode.nonstiff"> -<!-- --> -</a> -<h3>Uses of <a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html" title="class in org.apache.commons.math3.ode.nonstiff">AdamsNordsieckFieldTransformer</a> in <a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/package-summary.html">org.apache.commons.math3.ode.nonstiff</a></h3> -<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> -<caption><span>Methods in <a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/package-summary.html">org.apache.commons.math3.ode.nonstiff</a> that return <a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html" title="class in org.apache.commons.math3.ode.nonstiff">AdamsNordsieckFieldTransformer</a></span><span class="tabEnd"> </span></caption> -<tr> -<th class="colFirst" scope="col">Modifier and Type</th> -<th class="colLast" scope="col">Method and Description</th> -</tr> -<tbody> -<tr class="altColor"> -<td class="colFirst"><code>static <T extends <a href="../../../../../../../org/apache/commons/math3/RealFieldElement.html" title="interface in org.apache.commons.math3">RealFieldElement</a><T>> <br><a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html" title="class in org.apache.commons.math3.ode.nonstiff">AdamsNordsieckFieldTransformer</a><T></code></td> -<td class="colLast"><span class="strong">AdamsNordsieckFieldTransformer.</span><code><strong><a href="../../../../../../../org/apache/commons/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html#getInstance(org.apache.commons.math3.Field,%20int)">getInstance</a></strong>(<a href="../../../../../../../org/apache/commons/math3/Field.html" title="interface in org.apache.commons.math3">Field</a><T> field, - int nSteps)</code> -<div class="block">Get the Nordsieck transformer for a given field and number of steps.</div> -</td> -</tr> -</tbody> -</table> -</li> -</ul> -</li> -</ul> -</div> -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<div class="bottomNav"><a name="navbar_bottom"> -<!-- --> -</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/math3/ode/nonstiff/AdamsNordsieckFieldTransformer.html" title="class in org.apache.commons.math3.ode.nonstiff">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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></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/math3/ode/nonstiff/class-use/AdamsNordsieckFieldTransformer.html" target="_top">Frames</a></li> -<li><a href="AdamsNordsieckFieldTransformer.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 © 2003–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> -</body> -</html> http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/00/0090d83b4de4dd55e4710166ecb79d69cdd6ab4a.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/0090d83b4de4dd55e4710166ecb79d69cdd6ab4a.svn-base b/site-content/.svn/pristine/00/0090d83b4de4dd55e4710166ecb79d69cdd6ab4a.svn-base deleted file mode 100644 index 6c42d4d..0000000 --- a/site-content/.svn/pristine/00/0090d83b4de4dd55e4710166ecb79d69cdd6ab4a.svn-base +++ /dev/null @@ -1 +0,0 @@ -<?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>AbstractRegion.new Object() {...}</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 Math</a> > <a href="index.html" class="el_package">org.apache.commons.math3.geometry.partitioning</a> > <span class="el_class">AbstractRegion.new Object() {...}</span></div><h1>AbstractRegion.new Object() {...}</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><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">3 of 26</td><td class="ctr2">88%</td><td class="bar">0 of 0</td><td class="ctr2">n/a </td><td class="ctr1">0</td><td class="ctr2">1</td><td class="ctr1">0</td><td class="ctr2">1</td><td class="ctr1">0</td><td class="ctr2">1</td></tr></tfoot><tbody><tr><td id="a0"><a href="AbstractRegion.java.html#L221" class="el_method">static {...}</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="13" height="10" title="3" alt="3"/><img src="../.resources/greenbar.gif" width="106" height="10" title="23" alt="23"/></td><td class="ctr2" id="c0">88%</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">1</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">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-complex/blob/b3576eeb/site-content/.svn/pristine/00/0099dee2b2c41f911fadd8277c0e1a64fac6d472.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/0099dee2b2c41f911fadd8277c0e1a64fac6d472.svn-base b/site-content/.svn/pristine/00/0099dee2b2c41f911fadd8277c0e1a64fac6d472.svn-base deleted file mode 100644 index d7965dc..0000000 --- a/site-content/.svn/pristine/00/0099dee2b2c41f911fadd8277c0e1a64fac6d472.svn-base +++ /dev/null @@ -1,135 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!-- NewPage --> -<html lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>org.apache.commons.math3.complex Class Hierarchy (Apache Commons Math 3.6.1 API)</title> -<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> -</head> -<body> -<script type="text/javascript"><!-- - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="org.apache.commons.math3.complex Class Hierarchy (Apache Commons Math 3.6.1 API)"; - } -//--> -</script> -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<!-- ========= START OF TOP NAVBAR ======= --> -<div class="topNav"><a name="navbar_top"> -<!-- --> -</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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</li> -<li>Use</li> -<li class="navBarCell1Rev">Tree</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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> -</div> -<div class="subNav"> -<ul class="navList"> -<li><a href="../../../../../org/apache/commons/math3/analysis/solvers/package-tree.html">Prev</a></li> -<li><a href="../../../../../org/apache/commons/math3/dfp/package-tree.html">Next</a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../index.html?org/apache/commons/math3/complex/package-tree.html" target="_top">Frames</a></li> -<li><a href="package-tree.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"> -<h1 class="title">Hierarchy For Package org.apache.commons.math3.complex</h1> -<span class="strong">Package Hierarchies:</span> -<ul class="horizontal"> -<li><a href="../../../../../overview-tree.html">All Packages</a></li> -</ul> -</div> -<div class="contentContainer"> -<h2 title="Class Hierarchy">Class Hierarchy</h2> -<ul> -<li type="circle">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"><span class="strong">Object</span></a> -<ul> -<li type="circle">org.apache.commons.math3.complex.<a href="../../../../../org/apache/commons/math3/complex/Complex.html" title="class in org.apache.commons.math3.complex"><span class="strong">Complex</span></a> (implements org.apache.commons.math3.<a href="../../../../../org/apache/commons/math3/FieldElement.html" title="interface in org.apache.commons.math3">FieldElement</a><T>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)</li> -<li type="circle">org.apache.commons.math3.complex.<a href="../../../../../org/apache/commons/math3/complex/ComplexField.html" title="class in org.apache.commons.math3.complex"><span class="strong">ComplexField</span></a> (implements org.apache.commons.math3.<a href="../../../../../org/apache/commons/math3/Field.html" title="interface in org.apache.commons.math3">Field</a><T>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)</li> -<li type="circle">org.apache.commons.math3.complex.<a href="../../../../../org/apache/commons/math3/complex/ComplexFormat.html" title="class in org.apache.commons.math3.complex"><span class="strong">ComplexFormat</span></a></li> -<li type="circle">org.apache.commons.math3.complex.<a href="../../../../../org/apache/commons/math3/complex/ComplexUtils.html" title="class in org.apache.commons.math3.complex"><span class="strong">ComplexUtils</span></a></li> -<li type="circle">org.apache.commons.math3.complex.<a href="../../../../../org/apache/commons/math3/complex/Quaternion.html" title="class in org.apache.commons.math3.complex"><span class="strong">Quaternion</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)</li> -<li type="circle">org.apache.commons.math3.complex.<a href="../../../../../org/apache/commons/math3/complex/RootsOfUnity.html" title="class in org.apache.commons.math3.complex"><span class="strong">RootsOfUnity</span></a> (implements java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)</li> -</ul> -</li> -</ul> -</div> -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<div class="bottomNav"><a name="navbar_bottom"> -<!-- --> -</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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</li> -<li>Use</li> -<li class="navBarCell1Rev">Tree</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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> -</div> -<div class="subNav"> -<ul class="navList"> -<li><a href="../../../../../org/apache/commons/math3/analysis/solvers/package-tree.html">Prev</a></li> -<li><a href="../../../../../org/apache/commons/math3/dfp/package-tree.html">Next</a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../index.html?org/apache/commons/math3/complex/package-tree.html" target="_top">Frames</a></li> -<li><a href="package-tree.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 © 2003–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> -</body> -</html> http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/00/00a74bfe4cec91974e2a34cc98c7a2f9b440a20a.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/00a74bfe4cec91974e2a34cc98c7a2f9b440a20a.svn-base b/site-content/.svn/pristine/00/00a74bfe4cec91974e2a34cc98c7a2f9b440a20a.svn-base deleted file mode 100644 index 5853190..0000000 --- a/site-content/.svn/pristine/00/00a74bfe4cec91974e2a34cc98c7a2f9b440a20a.svn-base +++ /dev/null @@ -1 +0,0 @@ -<?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>AbstractIntegrator.new Comparator() {...}</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 Math</a> > <a href="index.html" class="el_package">org.apache.commons.math3.ode</a> > <span class="el_class">AbstractIntegrator.new Comparator() {...}</span></div><h1>AbstractIntegrator.new Comparator() {...}</h1>< table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><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 18</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td class="ct r2">n/a</td><td class="ctr1">0</td><td class="ctr2">2</td><td class="ctr1">0</td><td class="ctr2">2</td><td class="ctr1">0</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td id="a1"><a href="AbstractIntegrator.java.html#L340" class="el_method">{...}</a></td><td class="bar" id="b0"><img src="../.resources/greenbar.gif" width="120" height="10" title="9" alt="9"/></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">1</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="AbstractIntegrator.java.html#L344" class="el_method">compare(EventState, EventState)</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="120" 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="f 1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">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-complex/blob/b3576eeb/site-content/.svn/pristine/00/00a80ebdf9f3fc1ac570ea1463a68f0cadfd622f.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/00a80ebdf9f3fc1ac570ea1463a68f0cadfd622f.svn-base b/site-content/.svn/pristine/00/00a80ebdf9f3fc1ac570ea1463a68f0cadfd622f.svn-base deleted file mode 100644 index 7af8d0b..0000000 --- a/site-content/.svn/pristine/00/00a80ebdf9f3fc1ac570ea1463a68f0cadfd622f.svn-base +++ /dev/null @@ -1,217 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!-- NewPage --> -<html lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>LearningFactorFunction (Apache Commons Math 3.6.1 API)</title> -<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> -</head> -<body> -<script type="text/javascript"><!-- - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="LearningFactorFunction (Apache Commons Math 3.6.1 API)"; - } -//--> -</script> -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<!-- ========= START OF TOP NAVBAR ======= --> -<div class="topNav"><a name="navbar_top"> -<!-- --> -</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/LearningFactorFunction.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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> -</div> -<div class="subNav"> -<ul class="navList"> -<li><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateAction.html" title="class in org.apache.commons.math3.ml.neuralnet.sofm"><span class="strong">Prev Class</span></a></li> -<li><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunctionFactory.html" title="class in org.apache.commons.math3.ml.neuralnet.sofm"><span class="strong">Next Class</span></a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../../index.html?org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunction.html" target="_top">Frames</a></li> -<li><a href="LearningFactorFunction.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>Constr | </li> -<li><a href="#method_summary">Method</a></li> -</ul> -<ul class="subNavList"> -<li>Detail: </li> -<li>Field | </li> -<li>Constr | </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.math3.ml.neuralnet.sofm</div> -<h2 title="Interface LearningFactorFunction" class="title">Interface LearningFactorFunction</h2> -</div> -<div class="contentContainer"> -<div class="description"> -<ul class="blockList"> -<li class="blockList"> -<hr> -<br> -<pre>public interface <a href="../../../../../../../src-html/org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunction.html#line.26">LearningFactorFunction</a></pre> -<div class="block">Provides the learning rate as a function of the number of calls - already performed during the learning task.</div> -<dl><dt><span class="strong">Since:</span></dt> - <dd>3.3</dd></dl> -</li> -</ul> -</div> -<div class="summary"> -<ul class="blockList"> -<li class="blockList"> -<!-- ========== METHOD SUMMARY =========== --> -<ul class="blockList"> -<li class="blockList"><a name="method_summary"> -<!-- --> -</a> -<h3>Method Summary</h3> -<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> -<caption><span>Methods</span><span class="tabEnd"> </span></caption> -<tr> -<th class="colFirst" scope="col">Modifier and Type</th> -<th class="colLast" scope="col">Method and Description</th> -</tr> -<tr class="altColor"> -<td class="colFirst"><code>double</code></td> -<td class="colLast"><code><strong><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunction.html#value(long)">value</a></strong>(long numCall)</code> -<div class="block">Computes the learning rate at the current call.</div> -</td> -</tr> -</table> -</li> -</ul> -</li> -</ul> -</div> -<div class="details"> -<ul class="blockList"> -<li class="blockList"> -<!-- ============ METHOD DETAIL ========== --> -<ul class="blockList"> -<li class="blockList"><a name="method_detail"> -<!-- --> -</a> -<h3>Method Detail</h3> -<a name="value(long)"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>value</h4> -<pre>double <a href="../../../../../../../src-html/org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunction.html#line.33">value</a>(long numCall)</pre> -<div class="block">Computes the learning rate at the current call.</div> -<dl><dt><span class="strong">Parameters:</span></dt><dd><code>numCall</code> - Current step of the training task.</dd> -<dt><span class="strong">Returns:</span></dt><dd>the value of the function at <code>numCall</code>.</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/LearningFactorFunction.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"><em><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script></em></div> -</div> -<div class="subNav"> -<ul class="navList"> -<li><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateAction.html" title="class in org.apache.commons.math3.ml.neuralnet.sofm"><span class="strong">Prev Class</span></a></li> -<li><a href="../../../../../../../org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunctionFactory.html" title="class in org.apache.commons.math3.ml.neuralnet.sofm"><span class="strong">Next Class</span></a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../../index.html?org/apache/commons/math3/ml/neuralnet/sofm/LearningFactorFunction.html" target="_top">Frames</a></li> -<li><a href="LearningFactorFunction.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>Constr | </li> -<li><a href="#method_summary">Method</a></li> -</ul> -<ul class="subNavList"> -<li>Detail: </li> -<li>Field | </li> -<li>Constr | </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 © 2003–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> -</body> -</html> http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/00/00ad54137d2fc827d768082ee54e6f5eb5e6b511.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/00/00ad54137d2fc827d768082ee54e6f5eb5e6b511.svn-base b/site-content/.svn/pristine/00/00ad54137d2fc827d768082ee54e6f5eb5e6b511.svn-base deleted file mode 100644 index 199695a..0000000 --- a/site-content/.svn/pristine/00/00ad54137d2fc827d768082ee54e6f5eb5e6b511.svn-base +++ /dev/null @@ -1,162 +0,0 @@ -<!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>CycleCrossoverTest xref</title> -<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> -</head> -<body> -<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/math3/genetics/CycleCrossoverTest.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.math3.genetics; -<a class="jxr_linenumber" name="L18" href="#L18">18</a> -<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong class="jxr_keyword">import</strong> org.apache.commons.math3.exception.DimensionMismatchException; -<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> org.apache.commons.math3.exception.MathIllegalArgumentException; -<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> org.junit.Assert; -<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> org.junit.Test; -<a class="jxr_linenumber" name="L23" href="#L23">23</a> -<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/math3/genetics/CycleCrossoverTest.html">CycleCrossoverTest</a> { -<a class="jxr_linenumber" name="L25" href="#L25">25</a> -<a class="jxr_linenumber" name="L26" href="#L26">26</a> @Test -<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCrossoverExample() { -<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_comment">// taken from http://www.rubicite.com/Tutorials/GeneticAlgorithms/CrossoverOperators/CycleCrossoverOperator.aspx</em> -<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">final</strong> Integer[] p1 = <strong class="jxr_keyword">new</strong> Integer[] { 8, 4, 7, 3, 6, 2, 5, 1, 9, 0 }; -<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">final</strong> Integer[] p2 = <strong class="jxr_keyword">new</strong> Integer[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; -<a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a> p1c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a>(p1); -<a class="jxr_linenumber" name="L32" href="#L32">32</a> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a> p2c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a>(p2); -<a class="jxr_linenumber" name="L33" href="#L33">33</a> -<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">final</strong> CrossoverPolicy cp = <strong class="jxr_keyword">new</strong> CycleCrossover<Integer>(); -<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">final</strong> ChromosomePair pair = cp.crossover(p1c, p2c); -<a class="jxr_linenumber" name="L36" href="#L36">36</a> -<a class="jxr_linenumber" name="L37" href="#L37">37</a> <strong class="jxr_keyword">final</strong> Integer[] c1 = ((DummyListChromosome) pair.getFirst()).getRepresentation().toArray(<strong class="jxr_keyword">new</strong> Integer[p1.length]); -<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">final</strong> Integer[] c2 = ((DummyListChromosome) pair.getSecond()).getRepresentation().toArray(<strong class="jxr_keyword">new</strong> Integer[p2.length]); -<a class="jxr_linenumber" name="L39" href="#L39">39</a> -<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong class="jxr_keyword">final</strong> Integer[] c1e = <strong class="jxr_keyword">new</strong> Integer[] { 8, 1, 2, 3, 4, 5, 6, 7, 9, 0 }; -<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">final</strong> Integer[] c2e = <strong class="jxr_keyword">new</strong> Integer[] { 0, 4, 7, 3, 6, 2, 5, 1, 8, 9 }; -<a class="jxr_linenumber" name="L42" href="#L42">42</a> -<a class="jxr_linenumber" name="L43" href="#L43">43</a> Assert.assertArrayEquals(c1e, c1); -<a class="jxr_linenumber" name="L44" href="#L44">44</a> Assert.assertArrayEquals(c2e, c2); -<a class="jxr_linenumber" name="L45" href="#L45">45</a> } -<a class="jxr_linenumber" name="L46" href="#L46">46</a> -<a class="jxr_linenumber" name="L47" href="#L47">47</a> @Test -<a class="jxr_linenumber" name="L48" href="#L48">48</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCrossoverExample2() { -<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_comment">// taken from http://www.scribd.com/doc/54206412/32/Cycle-crossover</em> -<a class="jxr_linenumber" name="L50" href="#L50">50</a> <strong class="jxr_keyword">final</strong> Integer[] p1 = <strong class="jxr_keyword">new</strong> Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; -<a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong class="jxr_keyword">final</strong> Integer[] p2 = <strong class="jxr_keyword">new</strong> Integer[] { 9, 3, 7, 8, 2, 6, 5, 1, 4}; -<a class="jxr_linenumber" name="L52" href="#L52">52</a> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a> p1c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a>(p1); -<a class="jxr_linenumber" name="L53" href="#L53">53</a> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a> p2c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a>(p2); -<a class="jxr_linenumber" name="L54" href="#L54">54</a> -<a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong class="jxr_keyword">final</strong> CrossoverPolicy cp = <strong class="jxr_keyword">new</strong> CycleCrossover<Integer>(); -<a class="jxr_linenumber" name="L56" href="#L56">56</a> <strong class="jxr_keyword">final</strong> ChromosomePair pair = cp.crossover(p1c, p2c); -<a class="jxr_linenumber" name="L57" href="#L57">57</a> -<a class="jxr_linenumber" name="L58" href="#L58">58</a> <strong class="jxr_keyword">final</strong> Integer[] c1 = ((DummyListChromosome) pair.getFirst()).getRepresentation().toArray(<strong class="jxr_keyword">new</strong> Integer[p1.length]); -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <strong class="jxr_keyword">final</strong> Integer[] c2 = ((DummyListChromosome) pair.getSecond()).getRepresentation().toArray(<strong class="jxr_keyword">new</strong> Integer[p2.length]); -<a class="jxr_linenumber" name="L60" href="#L60">60</a> -<a class="jxr_linenumber" name="L61" href="#L61">61</a> <strong class="jxr_keyword">final</strong> Integer[] c1e = <strong class="jxr_keyword">new</strong> Integer[] { 1, 3, 7, 4, 2, 6, 5, 8, 9 }; -<a class="jxr_linenumber" name="L62" href="#L62">62</a> <strong class="jxr_keyword">final</strong> Integer[] c2e = <strong class="jxr_keyword">new</strong> Integer[] { 9, 2, 3, 8, 5, 6, 7, 1, 4 }; -<a class="jxr_linenumber" name="L63" href="#L63">63</a> -<a class="jxr_linenumber" name="L64" href="#L64">64</a> Assert.assertArrayEquals(c1e, c1); -<a class="jxr_linenumber" name="L65" href="#L65">65</a> Assert.assertArrayEquals(c2e, c2); -<a class="jxr_linenumber" name="L66" href="#L66">66</a> } -<a class="jxr_linenumber" name="L67" href="#L67">67</a> -<a class="jxr_linenumber" name="L68" href="#L68">68</a> @Test -<a class="jxr_linenumber" name="L69" href="#L69">69</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCrossover() { -<a class="jxr_linenumber" name="L70" href="#L70">70</a> <strong class="jxr_keyword">final</strong> Integer[] p1 = <strong class="jxr_keyword">new</strong> Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; -<a class="jxr_linenumber" name="L71" href="#L71">71</a> <strong class="jxr_keyword">final</strong> Integer[] p2 = <strong class="jxr_keyword">new</strong> Integer[] { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }; -<a class="jxr_linenumber" name="L72" href="#L72">72</a> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a> p1c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a>(p1); -<a class="jxr_linenumber" name="L73" href="#L73">73</a> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a> p2c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyListChromosome.html">DummyListChromosome</a>(p2); -<a class="jxr_linenumber" name="L74" href="#L74">74</a> -<a class="jxr_linenumber" name="L75" href="#L75">75</a> <strong class="jxr_keyword">final</strong> CrossoverPolicy cp = <strong class="jxr_keyword">new</strong> CycleCrossover<Integer>(<strong class="jxr_keyword">true</strong>); -<a class="jxr_linenumber" name="L76" href="#L76">76</a> -<a class="jxr_linenumber" name="L77" href="#L77">77</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < 20; i++) { -<a class="jxr_linenumber" name="L78" href="#L78">78</a> <strong class="jxr_keyword">final</strong> ChromosomePair pair = cp.crossover(p1c, p2c); -<a class="jxr_linenumber" name="L79" href="#L79">79</a> -<a class="jxr_linenumber" name="L80" href="#L80">80</a> <strong class="jxr_keyword">final</strong> Integer[] c1 = ((DummyListChromosome) pair.getFirst()).getRepresentation().toArray(<strong class="jxr_keyword">new</strong> Integer[p1.length]); -<a class="jxr_linenumber" name="L81" href="#L81">81</a> <strong class="jxr_keyword">final</strong> Integer[] c2 = ((DummyListChromosome) pair.getSecond()).getRepresentation().toArray(<strong class="jxr_keyword">new</strong> Integer[p2.length]); -<a class="jxr_linenumber" name="L82" href="#L82">82</a> -<a class="jxr_linenumber" name="L83" href="#L83">83</a> <strong class="jxr_keyword">int</strong> index = 0; -<a class="jxr_linenumber" name="L84" href="#L84">84</a> <em class="jxr_comment">// Determine if it is in the same spot as in the first parent, if</em> -<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_comment">// not it comes from the second parent.</em> -<a class="jxr_linenumber" name="L86" href="#L86">86</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Integer j : c1) { -<a class="jxr_linenumber" name="L87" href="#L87">87</a> <strong class="jxr_keyword">if</strong> (!p1[index].equals(j)) { -<a class="jxr_linenumber" name="L88" href="#L88">88</a> Assert.assertEquals(j, p2[index]); -<a class="jxr_linenumber" name="L89" href="#L89">89</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L90" href="#L90">90</a> Assert.assertEquals(j, p1[index]); -<a class="jxr_linenumber" name="L91" href="#L91">91</a> } -<a class="jxr_linenumber" name="L92" href="#L92">92</a> index++; -<a class="jxr_linenumber" name="L93" href="#L93">93</a> } -<a class="jxr_linenumber" name="L94" href="#L94">94</a> -<a class="jxr_linenumber" name="L95" href="#L95">95</a> <em class="jxr_comment">// Same as above only for the second parent.</em> -<a class="jxr_linenumber" name="L96" href="#L96">96</a> index = 0; -<a class="jxr_linenumber" name="L97" href="#L97">97</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Integer k : c2) { -<a class="jxr_linenumber" name="L98" href="#L98">98</a> <strong class="jxr_keyword">if</strong> (p2[index] != k) { -<a class="jxr_linenumber" name="L99" href="#L99">99</a> Assert.assertEquals(k, p1[index]); -<a class="jxr_linenumber" name="L100" href="#L100">100</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L101" href="#L101">101</a> Assert.assertEquals(k, p2[index]); -<a class="jxr_linenumber" name="L102" href="#L102">102</a> } -<a class="jxr_linenumber" name="L103" href="#L103">103</a> index++; -<a class="jxr_linenumber" name="L104" href="#L104">104</a> } -<a class="jxr_linenumber" name="L105" href="#L105">105</a> } -<a class="jxr_linenumber" name="L106" href="#L106">106</a> } -<a class="jxr_linenumber" name="L107" href="#L107">107</a> -<a class="jxr_linenumber" name="L108" href="#L108">108</a> @Test(expected = DimensionMismatchException.<strong class="jxr_keyword">class</strong>) -<a class="jxr_linenumber" name="L109" href="#L109">109</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCrossoverDimensionMismatchException() { -<a class="jxr_linenumber" name="L110" href="#L110">110</a> <strong class="jxr_keyword">final</strong> Integer[] p1 = <strong class="jxr_keyword">new</strong> Integer[] { 1, 0, 1, 0, 0, 1, 0, 1, 1 }; -<a class="jxr_linenumber" name="L111" href="#L111">111</a> <strong class="jxr_keyword">final</strong> Integer[] p2 = <strong class="jxr_keyword">new</strong> Integer[] { 0, 1, 1, 0, 1 }; -<a class="jxr_linenumber" name="L112" href="#L112">112</a> -<a class="jxr_linenumber" name="L113" href="#L113">113</a> <strong class="jxr_keyword">final</strong> BinaryChromosome p1c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyBinaryChromosome.html">DummyBinaryChromosome</a>(p1); -<a class="jxr_linenumber" name="L114" href="#L114">114</a> <strong class="jxr_keyword">final</strong> BinaryChromosome p2c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyBinaryChromosome.html">DummyBinaryChromosome</a>(p2); -<a class="jxr_linenumber" name="L115" href="#L115">115</a> -<a class="jxr_linenumber" name="L116" href="#L116">116</a> <strong class="jxr_keyword">final</strong> CrossoverPolicy cp = <strong class="jxr_keyword">new</strong> CycleCrossover<Integer>(); -<a class="jxr_linenumber" name="L117" href="#L117">117</a> cp.crossover(p1c, p2c); -<a class="jxr_linenumber" name="L118" href="#L118">118</a> } -<a class="jxr_linenumber" name="L119" href="#L119">119</a> -<a class="jxr_linenumber" name="L120" href="#L120">120</a> @Test(expected = MathIllegalArgumentException.<strong class="jxr_keyword">class</strong>) -<a class="jxr_linenumber" name="L121" href="#L121">121</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCrossoverInvalidFixedLengthChromosomeFirst() { -<a class="jxr_linenumber" name="L122" href="#L122">122</a> <strong class="jxr_keyword">final</strong> Integer[] p1 = <strong class="jxr_keyword">new</strong> Integer[] { 1, 0, 1, 0, 0, 1, 0, 1, 1 }; -<a class="jxr_linenumber" name="L123" href="#L123">123</a> <strong class="jxr_keyword">final</strong> BinaryChromosome p1c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyBinaryChromosome.html">DummyBinaryChromosome</a>(p1); -<a class="jxr_linenumber" name="L124" href="#L124">124</a> <strong class="jxr_keyword">final</strong> Chromosome p2c = <strong class="jxr_keyword">new</strong> Chromosome() { -<a class="jxr_linenumber" name="L125" href="#L125">125</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> fitness() { -<a class="jxr_linenumber" name="L126" href="#L126">126</a> <em class="jxr_comment">// Not important</em> -<a class="jxr_linenumber" name="L127" href="#L127">127</a> <strong class="jxr_keyword">return</strong> 0; -<a class="jxr_linenumber" name="L128" href="#L128">128</a> } -<a class="jxr_linenumber" name="L129" href="#L129">129</a> }; -<a class="jxr_linenumber" name="L130" href="#L130">130</a> -<a class="jxr_linenumber" name="L131" href="#L131">131</a> <strong class="jxr_keyword">final</strong> CrossoverPolicy cp = <strong class="jxr_keyword">new</strong> CycleCrossover<Integer>(); -<a class="jxr_linenumber" name="L132" href="#L132">132</a> cp.crossover(p1c, p2c); -<a class="jxr_linenumber" name="L133" href="#L133">133</a> } -<a class="jxr_linenumber" name="L134" href="#L134">134</a> -<a class="jxr_linenumber" name="L135" href="#L135">135</a> @Test(expected = MathIllegalArgumentException.<strong class="jxr_keyword">class</strong>) -<a class="jxr_linenumber" name="L136" href="#L136">136</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCrossoverInvalidFixedLengthChromosomeSecond() { -<a class="jxr_linenumber" name="L137" href="#L137">137</a> <strong class="jxr_keyword">final</strong> Integer[] p1 = <strong class="jxr_keyword">new</strong> Integer[] { 1, 0, 1, 0, 0, 1, 0, 1, 1 }; -<a class="jxr_linenumber" name="L138" href="#L138">138</a> <strong class="jxr_keyword">final</strong> BinaryChromosome p2c = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/genetics/DummyBinaryChromosome.html">DummyBinaryChromosome</a>(p1); -<a class="jxr_linenumber" name="L139" href="#L139">139</a> <strong class="jxr_keyword">final</strong> Chromosome p1c = <strong class="jxr_keyword">new</strong> Chromosome() { -<a class="jxr_linenumber" name="L140" href="#L140">140</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> fitness() { -<a class="jxr_linenumber" name="L141" href="#L141">141</a> <em class="jxr_comment">// Not important</em> -<a class="jxr_linenumber" name="L142" href="#L142">142</a> <strong class="jxr_keyword">return</strong> 0; -<a class="jxr_linenumber" name="L143" href="#L143">143</a> } -<a class="jxr_linenumber" name="L144" href="#L144">144</a> }; -<a class="jxr_linenumber" name="L145" href="#L145">145</a> -<a class="jxr_linenumber" name="L146" href="#L146">146</a> <strong class="jxr_keyword">final</strong> CrossoverPolicy cp = <strong class="jxr_keyword">new</strong> CycleCrossover<Integer>(); -<a class="jxr_linenumber" name="L147" href="#L147">147</a> cp.crossover(p1c, p2c); -<a class="jxr_linenumber" name="L148" href="#L148">148</a> } -<a class="jxr_linenumber" name="L149" href="#L149">149</a> } -</pre> -<hr/> -<div id="footer">Copyright © 2003–2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> -</body> -</html>
