http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/05/0529bbe7c2af2277ee218c5967c0d9bfbe624b28.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/0529bbe7c2af2277ee218c5967c0d9bfbe624b28.svn-base b/site-content/.svn/pristine/05/0529bbe7c2af2277ee218c5967c0d9bfbe624b28.svn-base deleted file mode 100644 index ee4e3f6..0000000 --- a/site-content/.svn/pristine/05/0529bbe7c2af2277ee218c5967c0d9bfbe624b28.svn-base +++ /dev/null @@ -1,355 +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>BrentOptimizer (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="BrentOptimizer (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/BrentOptimizer.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/optimization/univariate/BracketFinder.html" title="class in org.apache.commons.math3.optimization.univariate"><span class="strong">Prev Class</span></a></li> -<li><a href="../../../../../../org/apache/commons/math3/optimization/univariate/SimpleUnivariateValueChecker.html" title="class in org.apache.commons.math3.optimization.univariate"><span class="strong">Next Class</span></a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../index.html?org/apache/commons/math3/optimization/univariate/BrentOptimizer.html" target="_top">Frames</a></li> -<li><a href="BrentOptimizer.html" target="_top">No Frames</a></li> -</ul> -<ul class="navList" id="allclasses_navbar_top"> -<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> -</ul> -<div> -<script type="text/javascript"><!-- - allClassesLink = document.getElementById("allclasses_navbar_top"); - if(window==top) { - allClassesLink.style.display = "block"; - } - else { - allClassesLink.style.display = "none"; - } - //--> -</script> -</div> -<div> -<ul class="subNavList"> -<li>Summary: </li> -<li>Nested | </li> -<li>Field | </li> -<li><a href="#constructor_summary">Constr</a> | </li> -<li><a href="#method_summary">Method</a></li> -</ul> -<ul class="subNavList"> -<li>Detail: </li> -<li>Field | </li> -<li><a href="#constructor_detail">Constr</a> | </li> -<li><a href="#method_detail">Method</a></li> -</ul> -</div> -<a name="skip-navbar_top"> -<!-- --> -</a></div> -<!-- ========= END OF TOP NAVBAR ========= --> -<!-- ======== START OF CLASS DATA ======== --> -<div class="header"> -<div class="subTitle">org.apache.commons.math3.optimization.univariate</div> -<h2 title="Class BrentOptimizer" class="title">Class BrentOptimizer</h2> -</div> -<div class="contentContainer"> -<ul class="inheritance"> -<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> -<li> -<ul class="inheritance"> -<li><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html" title="class in org.apache.commons.math3.optimization.univariate">org.apache.commons.math3.optimization.univariate.BaseAbstractUnivariateOptimizer</a></li> -<li> -<ul class="inheritance"> -<li>org.apache.commons.math3.optimization.univariate.BrentOptimizer</li> -</ul> -</li> -</ul> -</li> -</ul> -<div class="description"> -<ul class="blockList"> -<li class="blockList"> -<dl> -<dt>All Implemented Interfaces:</dt> -<dd><a href="../../../../../../org/apache/commons/math3/optimization/BaseOptimizer.html" title="interface in org.apache.commons.math3.optimization">BaseOptimizer</a><<a href="../../../../../../org/apache/commons/math3/optimization/univariate/UnivariatePointValuePair.html" title="class in org.apache.commons.math3.optimization.univariate">UnivariatePointValuePair</a>>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.html" title="interface in org.apache.commons.math3.optimization.univariate">BaseUnivariateOptimizer</a><<a href="../../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a>>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/UnivariateOptimizer.html" title="interface in org.apache.commons.math3.optimization.univariate">UnivariateOptimizer</a></dd> -</dl> -<hr> -<div class="block"><strong>Deprecated.</strong> -<div class="block"><i>As of 3.1 (to be removed in 4.0).</i></div> -</div> -<br> -<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public class <a href="../../../../../../src-html/org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#line.45">BrentOptimizer</a> -extends <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html" title="class in org.apache.commons.math3.optimization.univariate">BaseAbstractUnivariateOptimizer</a></pre> -<div class="block">For a function defined on some interval <code>(lo, hi)</code>, this class - finds an approximation <code>x</code> to the point at which the function - attains its minimum. - It implements Richard Brent's algorithm (from his book "Algorithms for - Minimization without Derivatives", p. 79) for finding minima of real - univariate functions. - <br/> - This code is an adaptation, partly based on the Python code from SciPy - (module "optimize.py" v0.5); the original algorithm is also modified - <ul> - <li>to use an initial guess provided by the user,</li> - <li>to ensure that the best point encountered is the one returned.</li> - </ul></div> -<dl><dt><span class="strong">Since:</span></dt> - <dd>2.0</dd></dl> -</li> -</ul> -</div> -<div class="summary"> -<ul class="blockList"> -<li class="blockList"> -<!-- ======== CONSTRUCTOR SUMMARY ======== --> -<ul class="blockList"> -<li class="blockList"><a name="constructor_summary"> -<!-- --> -</a> -<h3>Constructor Summary</h3> -<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> -<caption><span>Constructors</span><span class="tabEnd"> </span></caption> -<tr> -<th class="colOne" scope="col">Constructor and Description</th> -</tr> -<tr class="altColor"> -<td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#BrentOptimizer(double,%20double)">BrentOptimizer</a></strong>(double rel, - double abs)</code> -<div class="block"><strong>Deprecated.</strong> </div> -<div class="block">The arguments are used for implementing the original stopping criterion - of Brent's algorithm.</div> -</td> -</tr> -<tr class="rowColor"> -<td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#BrentOptimizer(double,%20double,%20org.apache.commons.math3.optimization.ConvergenceChecker)">BrentOptimizer</a></strong>(double rel, - double abs, - <a href="../../../../../../org/apache/commons/math3/optimization/ConvergenceChecker.html" title="interface in org.apache.commons.math3.optimization">ConvergenceChecker</a><<a href="../../../../../../org/apache/commons/math3/optimization/univariate/UnivariatePointValuePair.html" title="class in org.apache.commons.math3.optimization.univariate">UnivariatePointValuePair</a>> checker)</code> -<div class="block"><strong>Deprecated.</strong> </div> -<div class="block">The arguments are used implement the original stopping criterion - of Brent's algorithm.</div> -</td> -</tr> -</table> -</li> -</ul> -<!-- ========== METHOD SUMMARY =========== --> -<ul class="blockList"> -<li class="blockList"><a name="method_summary"> -<!-- --> -</a> -<h3>Method Summary</h3> -<table class="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>protected <a href="../../../../../../org/apache/commons/math3/optimization/univariate/UnivariatePointValuePair.html" title="class in org.apache.commons.math3.optimization.univariate">UnivariatePointValuePair</a></code></td> -<td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#doOptimize()">doOptimize</a></strong>()</code> -<div class="block"><strong>Deprecated.</strong> </div> -<div class="block">Method for implementing actual optimization algorithms in derived - classes.</div> -</td> -</tr> -</table> -<ul class="blockList"> -<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.math3.optimization.univariate.BaseAbstractUnivariateOptimizer"> -<!-- --> -</a> -<h3>Methods inherited from class org.apache.commons.math3.optimization.univariate.<a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html" title="class in org.apache.commons.math3.optimization.univariate">BaseAbstractUnivariateOptimizer</a></h3> -<code><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#computeObjectiveValue(double)">computeObjectiveValue</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#getConvergenceChecker()">getConvergenceChecker</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#getEvaluations()">getEvaluations</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#getGoalType()">getGoalType</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#getMax()">getMax</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#getMaxEvaluations()">getMaxEvaluations</a>, <a href="../../../../../../org/apache/commons/math3/optimization/un ivariate/BaseAbstractUnivariateOptimizer.html#getMin()">getMin</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#getStartValue()">getStartValue</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#optimize(int,%20org.apache.commons.math3.analysis.UnivariateFunction,%20org.apache.commons.math3.optimization.GoalType,%20double,%20double)">optimize</a>, <a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#optimize(int,%20org.apache.commons.math3.analysis.UnivariateFunction,%20org.apache.commons.math3.optimization.GoalType,%20double,%20double,%20double)">optimize</a></code></li> -</ul> -<ul class="blockList"> -<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> -<!-- --> -</a> -<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> -<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> -</ul> -</li> -</ul> -</li> -</ul> -</div> -<div class="details"> -<ul class="blockList"> -<li class="blockList"> -<!-- ========= CONSTRUCTOR DETAIL ======== --> -<ul class="blockList"> -<li class="blockList"><a name="constructor_detail"> -<!-- --> -</a> -<h3>Constructor Detail</h3> -<a name="BrentOptimizer(double, double, org.apache.commons.math3.optimization.ConvergenceChecker)"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>BrentOptimizer</h4> -<pre>public <a href="../../../../../../src-html/org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#line.79">BrentOptimizer</a>(double rel, - double abs, - <a href="../../../../../../org/apache/commons/math3/optimization/ConvergenceChecker.html" title="interface in org.apache.commons.math3.optimization">ConvergenceChecker</a><<a href="../../../../../../org/apache/commons/math3/optimization/univariate/UnivariatePointValuePair.html" title="class in org.apache.commons.math3.optimization.univariate">UnivariatePointValuePair</a>> checker)</pre> -<div class="block"><span class="strong">Deprecated.</span> </div> -<div class="block">The arguments are used implement the original stopping criterion - of Brent's algorithm. - <code>abs</code> and <code>rel</code> define a tolerance - <code>tol = rel |x| + abs</code>. <code>rel</code> should be no smaller than - <em>2 macheps</em> and preferably not much less than <em>sqrt(macheps)</em>, - where <em>macheps</em> is the relative machine precision. <code>abs</code> must - be positive.</div> -<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rel</code> - Relative threshold.</dd><dd><code>abs</code> - Absolute threshold.</dd><dd><code>checker</code> - Additional, user-defined, convergence checking - procedure.</dd> -<dt><span class="strong">Throws:</span></dt> -<dd><code><a href="../../../../../../org/apache/commons/math3/exception/NotStrictlyPositiveException.html" title="class in org.apache.commons.math3.exception">NotStrictlyPositiveException</a></code> - if <code>abs <= 0</code>.</dd> -<dd><code><a href="../../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>rel < 2 * Math.ulp(1d)</code>.</dd></dl> -</li> -</ul> -<a name="BrentOptimizer(double, double)"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>BrentOptimizer</h4> -<pre>public <a href="../../../../../../src-html/org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#line.109">BrentOptimizer</a>(double rel, - double abs)</pre> -<div class="block"><span class="strong">Deprecated.</span> </div> -<div class="block">The arguments are used for implementing the original stopping criterion - of Brent's algorithm. - <code>abs</code> and <code>rel</code> define a tolerance - <code>tol = rel |x| + abs</code>. <code>rel</code> should be no smaller than - <em>2 macheps</em> and preferably not much less than <em>sqrt(macheps)</em>, - where <em>macheps</em> is the relative machine precision. <code>abs</code> must - be positive.</div> -<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rel</code> - Relative threshold.</dd><dd><code>abs</code> - Absolute threshold.</dd> -<dt><span class="strong">Throws:</span></dt> -<dd><code><a href="../../../../../../org/apache/commons/math3/exception/NotStrictlyPositiveException.html" title="class in org.apache.commons.math3.exception">NotStrictlyPositiveException</a></code> - if <code>abs <= 0</code>.</dd> -<dd><code><a href="../../../../../../org/apache/commons/math3/exception/NumberIsTooSmallException.html" title="class in org.apache.commons.math3.exception">NumberIsTooSmallException</a></code> - if <code>rel < 2 * Math.ulp(1d)</code>.</dd></dl> -</li> -</ul> -</li> -</ul> -<!-- ============ METHOD DETAIL ========== --> -<ul class="blockList"> -<li class="blockList"><a name="method_detail"> -<!-- --> -</a> -<h3>Method Detail</h3> -<a name="doOptimize()"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>doOptimize</h4> -<pre>protected <a href="../../../../../../org/apache/commons/math3/optimization/univariate/UnivariatePointValuePair.html" title="class in org.apache.commons.math3.optimization.univariate">UnivariatePointValuePair</a> <a href="../../../../../../src-html/org/apache/commons/math3/optimization/univariate/BrentOptimizer.html#line.116">doOptimize</a>()</pre> -<div class="block"><span class="strong">Deprecated.</span> </div> -<div class="block">Method for implementing actual optimization algorithms in derived - classes.</div> -<dl> -<dt><strong>Specified by:</strong></dt> -<dd><code><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html#doOptimize()">doOptimize</a></code> in class <code><a href="../../../../../../org/apache/commons/math3/optimization/univariate/BaseAbstractUnivariateOptimizer.html" title="class in org.apache.commons.math3.optimization.univariate">BaseAbstractUnivariateOptimizer</a></code></dd> -<dt><span class="strong">Returns:</span></dt><dd>the optimum and its corresponding function value.</dd></dl> -</li> -</ul> -</li> -</ul> -</li> -</ul> -</div> -</div> -<!-- ========= END OF CLASS DATA ========= --> -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<div class="bottomNav"><a name="navbar_bottom"> -<!-- --> -</a><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/BrentOptimizer.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/optimization/univariate/BracketFinder.html" title="class in org.apache.commons.math3.optimization.univariate"><span class="strong">Prev Class</span></a></li> -<li><a href="../../../../../../org/apache/commons/math3/optimization/univariate/SimpleUnivariateValueChecker.html" title="class in org.apache.commons.math3.optimization.univariate"><span class="strong">Next Class</span></a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../index.html?org/apache/commons/math3/optimization/univariate/BrentOptimizer.html" target="_top">Frames</a></li> -<li><a href="BrentOptimizer.html" target="_top">No Frames</a></li> -</ul> -<ul class="navList" id="allclasses_navbar_bottom"> -<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> -</ul> -<div> -<script type="text/javascript"><!-- - allClassesLink = document.getElementById("allclasses_navbar_bottom"); - if(window==top) { - allClassesLink.style.display = "block"; - } - else { - allClassesLink.style.display = "none"; - } - //--> -</script> -</div> -<div> -<ul class="subNavList"> -<li>Summary: </li> -<li>Nested | </li> -<li>Field | </li> -<li><a href="#constructor_summary">Constr</a> | </li> -<li><a href="#method_summary">Method</a></li> -</ul> -<ul class="subNavList"> -<li>Detail: </li> -<li>Field | </li> -<li><a href="#constructor_detail">Constr</a> | </li> -<li><a href="#method_detail">Method</a></li> -</ul> -</div> -<a name="skip-navbar_bottom"> -<!-- --> -</a></div> -<!-- ======== END OF BOTTOM NAVBAR ======= --> -<p class="legalCopy"><small>Copyright © 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/05/0529c2cb1f8ed187dadeb801003dca42bc258761.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/0529c2cb1f8ed187dadeb801003dca42bc258761.svn-base b/site-content/.svn/pristine/05/0529c2cb1f8ed187dadeb801003dca42bc258761.svn-base deleted file mode 100644 index ecd8791..0000000 --- a/site-content/.svn/pristine/05/0529c2cb1f8ed187dadeb801003dca42bc258761.svn-base +++ /dev/null @@ -1,322 +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>Minus (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="Minus (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/Minus.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/analysis/function/Min.html" title="class in org.apache.commons.math3.analysis.function"><span class="strong">Prev Class</span></a></li> -<li><a href="../../../../../../org/apache/commons/math3/analysis/function/Multiply.html" title="class in org.apache.commons.math3.analysis.function"><span class="strong">Next Class</span></a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../index.html?org/apache/commons/math3/analysis/function/Minus.html" target="_top">Frames</a></li> -<li><a href="Minus.html" target="_top">No Frames</a></li> -</ul> -<ul class="navList" id="allclasses_navbar_top"> -<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> -</ul> -<div> -<script type="text/javascript"><!-- - allClassesLink = document.getElementById("allclasses_navbar_top"); - if(window==top) { - allClassesLink.style.display = "block"; - } - else { - allClassesLink.style.display = "none"; - } - //--> -</script> -</div> -<div> -<ul class="subNavList"> -<li>Summary: </li> -<li>Nested | </li> -<li>Field | </li> -<li><a href="#constructor_summary">Constr</a> | </li> -<li><a href="#method_summary">Method</a></li> -</ul> -<ul class="subNavList"> -<li>Detail: </li> -<li>Field | </li> -<li><a href="#constructor_detail">Constr</a> | </li> -<li><a href="#method_detail">Method</a></li> -</ul> -</div> -<a name="skip-navbar_top"> -<!-- --> -</a></div> -<!-- ========= END OF TOP NAVBAR ========= --> -<!-- ======== START OF CLASS DATA ======== --> -<div class="header"> -<div class="subTitle">org.apache.commons.math3.analysis.function</div> -<h2 title="Class Minus" class="title">Class Minus</h2> -</div> -<div class="contentContainer"> -<ul class="inheritance"> -<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> -<li> -<ul class="inheritance"> -<li>org.apache.commons.math3.analysis.function.Minus</li> -</ul> -</li> -</ul> -<div class="description"> -<ul class="blockList"> -<li class="blockList"> -<dl> -<dt>All Implemented Interfaces:</dt> -<dd><a href="../../../../../../org/apache/commons/math3/analysis/DifferentiableUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">DifferentiableUnivariateFunction</a>, <a href="../../../../../../org/apache/commons/math3/analysis/differentiation/UnivariateDifferentiableFunction.html" title="interface in org.apache.commons.math3.analysis.differentiation">UnivariateDifferentiableFunction</a>, <a href="../../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a></dd> -</dl> -<hr> -<br> -<pre>public class <a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Minus.html#line.29">Minus</a> -extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> -implements <a href="../../../../../../org/apache/commons/math3/analysis/differentiation/UnivariateDifferentiableFunction.html" title="interface in org.apache.commons.math3.analysis.differentiation">UnivariateDifferentiableFunction</a>, <a href="../../../../../../org/apache/commons/math3/analysis/DifferentiableUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">DifferentiableUnivariateFunction</a></pre> -<div class="block">Minus function.</div> -<dl><dt><span class="strong">Since:</span></dt> - <dd>3.0</dd></dl> -</li> -</ul> -</div> -<div class="summary"> -<ul class="blockList"> -<li class="blockList"> -<!-- ======== CONSTRUCTOR SUMMARY ======== --> -<ul class="blockList"> -<li class="blockList"><a name="constructor_summary"> -<!-- --> -</a> -<h3>Constructor Summary</h3> -<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> -<caption><span>Constructors</span><span class="tabEnd"> </span></caption> -<tr> -<th class="colOne" scope="col">Constructor and Description</th> -</tr> -<tr class="altColor"> -<td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/math3/analysis/function/Minus.html#Minus()">Minus</a></strong>()</code> </td> -</tr> -</table> -</li> -</ul> -<!-- ========== 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><a href="../../../../../../org/apache/commons/math3/analysis/DifferentiableUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">DifferentiableUnivariateFunction</a></code></td> -<td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/math3/analysis/function/Minus.html#derivative()">derivative</a></strong>()</code> -<div class="block"><strong>Deprecated.</strong> -<div class="block"><i>as of 3.1, replaced by <a href="../../../../../../org/apache/commons/math3/analysis/function/Minus.html#value(org.apache.commons.math3.analysis.differentiation.DerivativeStructure)"><code>value(DerivativeStructure)</code></a></i></div> -</div> -</td> -</tr> -<tr class="rowColor"> -<td class="colFirst"><code><a href="../../../../../../org/apache/commons/math3/analysis/differentiation/DerivativeStructure.html" title="class in org.apache.commons.math3.analysis.differentiation">DerivativeStructure</a></code></td> -<td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/math3/analysis/function/Minus.html#value(org.apache.commons.math3.analysis.differentiation.DerivativeStructure)">value</a></strong>(<a href="../../../../../../org/apache/commons/math3/analysis/differentiation/DerivativeStructure.html" title="class in org.apache.commons.math3.analysis.differentiation">DerivativeStructure</a> t)</code> -<div class="block">Simple mathematical function.</div> -</td> -</tr> -<tr class="altColor"> -<td class="colFirst"><code>double</code></td> -<td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/math3/analysis/function/Minus.html#value(double)">value</a></strong>(double x)</code> -<div class="block">Compute the value of the function.</div> -</td> -</tr> -</table> -<ul class="blockList"> -<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> -<!-- --> -</a> -<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> -<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> -</ul> -</li> -</ul> -</li> -</ul> -</div> -<div class="details"> -<ul class="blockList"> -<li class="blockList"> -<!-- ========= CONSTRUCTOR DETAIL ======== --> -<ul class="blockList"> -<li class="blockList"><a name="constructor_detail"> -<!-- --> -</a> -<h3>Constructor Detail</h3> -<a name="Minus()"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>Minus</h4> -<pre>public <a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Minus.html#line.29">Minus</a>()</pre> -</li> -</ul> -</li> -</ul> -<!-- ============ METHOD DETAIL ========== --> -<ul class="blockList"> -<li class="blockList"><a name="method_detail"> -<!-- --> -</a> -<h3>Method Detail</h3> -<a name="value(double)"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>value</h4> -<pre>public double <a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Minus.html#line.31">value</a>(double x)</pre> -<div class="block">Compute the value of the function.</div> -<dl> -<dt><strong>Specified by:</strong></dt> -<dd><code><a href="../../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html#value(double)">value</a></code> in interface <code><a href="../../../../../../org/apache/commons/math3/analysis/UnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">UnivariateFunction</a></code></dd> -<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Point at which the function value should be computed.</dd> -<dt><span class="strong">Returns:</span></dt><dd>the value of the function.</dd></dl> -</li> -</ul> -<a name="derivative()"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>derivative</h4> -<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public <a href="../../../../../../org/apache/commons/math3/analysis/DifferentiableUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">DifferentiableUnivariateFunction</a> <a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Minus.html#line.39">derivative</a>()</pre> -<div class="block"><span class="strong">Deprecated.</span> <i>as of 3.1, replaced by <a href="../../../../../../org/apache/commons/math3/analysis/function/Minus.html#value(org.apache.commons.math3.analysis.differentiation.DerivativeStructure)"><code>value(DerivativeStructure)</code></a></i></div> -<div class="block">Returns the derivative of the function</div> -<dl> -<dt><strong>Specified by:</strong></dt> -<dd><code><a href="../../../../../../org/apache/commons/math3/analysis/DifferentiableUnivariateFunction.html#derivative()">derivative</a></code> in interface <code><a href="../../../../../../org/apache/commons/math3/analysis/DifferentiableUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">DifferentiableUnivariateFunction</a></code></dd> -<dt><span class="strong">Returns:</span></dt><dd>the derivative function</dd></dl> -</li> -</ul> -<a name="value(org.apache.commons.math3.analysis.differentiation.DerivativeStructure)"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>value</h4> -<pre>public <a href="../../../../../../org/apache/commons/math3/analysis/differentiation/DerivativeStructure.html" title="class in org.apache.commons.math3.analysis.differentiation">DerivativeStructure</a> <a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Minus.html#line.46">value</a>(<a href="../../../../../../org/apache/commons/math3/analysis/differentiation/DerivativeStructure.html" title="class in org.apache.commons.math3.analysis.differentiation">DerivativeStructure</a> t)</pre> -<div class="block">Simple mathematical function. - <p><a href="../../../../../../org/apache/commons/math3/analysis/differentiation/UnivariateDifferentiableFunction.html" title="interface in org.apache.commons.math3.analysis.differentiation"><code>UnivariateDifferentiableFunction</code></a> classes compute both the - value and the first derivative of the function.</p></div> -<dl> -<dt><strong>Specified by:</strong></dt> -<dd><code><a href="../../../../../../org/apache/commons/math3/analysis/differentiation/UnivariateDifferentiableFunction.html#value(org.apache.commons.math3.analysis.differentiation.DerivativeStructure)">value</a></code> in interface <code><a href="../../../../../../org/apache/commons/math3/analysis/differentiation/UnivariateDifferentiableFunction.html" title="interface in org.apache.commons.math3.analysis.differentiation">UnivariateDifferentiableFunction</a></code></dd> -<dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - function input value</dd> -<dt><span class="strong">Returns:</span></dt><dd>function result</dd><dt><span class="strong">Since:</span></dt> - <dd>3.1</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/Minus.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/analysis/function/Min.html" title="class in org.apache.commons.math3.analysis.function"><span class="strong">Prev Class</span></a></li> -<li><a href="../../../../../../org/apache/commons/math3/analysis/function/Multiply.html" title="class in org.apache.commons.math3.analysis.function"><span class="strong">Next Class</span></a></li> -</ul> -<ul class="navList"> -<li><a href="../../../../../../index.html?org/apache/commons/math3/analysis/function/Minus.html" target="_top">Frames</a></li> -<li><a href="Minus.html" target="_top">No Frames</a></li> -</ul> -<ul class="navList" id="allclasses_navbar_bottom"> -<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> -</ul> -<div> -<script type="text/javascript"><!-- - allClassesLink = document.getElementById("allclasses_navbar_bottom"); - if(window==top) { - allClassesLink.style.display = "block"; - } - else { - allClassesLink.style.display = "none"; - } - //--> -</script> -</div> -<div> -<ul class="subNavList"> -<li>Summary: </li> -<li>Nested | </li> -<li>Field | </li> -<li><a href="#constructor_summary">Constr</a> | </li> -<li><a href="#method_summary">Method</a></li> -</ul> -<ul class="subNavList"> -<li>Detail: </li> -<li>Field | </li> -<li><a href="#constructor_detail">Constr</a> | </li> -<li><a href="#method_detail">Method</a></li> -</ul> -</div> -<a name="skip-navbar_bottom"> -<!-- --> -</a></div> -<!-- ======== END OF BOTTOM NAVBAR ======= --> -<p class="legalCopy"><small>Copyright © 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/05/0529d5f7a9d6b9aae82fe047e32ad1352dfa3a86.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/0529d5f7a9d6b9aae82fe047e32ad1352dfa3a86.svn-base b/site-content/.svn/pristine/05/0529d5f7a9d6b9aae82fe047e32ad1352dfa3a86.svn-base deleted file mode 100644 index b923587..0000000 --- a/site-content/.svn/pristine/05/0529d5f7a9d6b9aae82fe047e32ad1352dfa3a86.svn-base +++ /dev/null @@ -1,117 +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.optim.SimpleVectorValueCheckerTest (Apache Commons Math 3.5 Test 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.optim.SimpleVectorValueCheckerTest (Apache Commons Math 3.5 Test 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/optim/SimpleVectorValueCheckerTest.html" title="class in org.apache.commons.math3.optim">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/optim//class-useSimpleVectorValueCheckerTest.html" target="_top">FRAMES</a></li> -<li><a href="SimpleVectorValueCheckerTest.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.optim.SimpleVectorValueCheckerTest" class="title">Uses of Class<br>org.apache.commons.math3.optim.SimpleVectorValueCheckerTest</h2> -</div> -<div class="classUseContainer">No usage of org.apache.commons.math3.optim.SimpleVectorValueCheckerTest</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/optim/SimpleVectorValueCheckerTest.html" title="class in org.apache.commons.math3.optim">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/optim//class-useSimpleVectorValueCheckerTest.html" target="_top">FRAMES</a></li> -<li><a href="SimpleVectorValueCheckerTest.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–2015 <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/05/052b797b30b300ec4013adbad7597edbae189ef4.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/052b797b30b300ec4013adbad7597edbae189ef4.svn-base b/site-content/.svn/pristine/05/052b797b30b300ec4013adbad7597edbae189ef4.svn-base deleted file mode 100644 index c12b68d..0000000 --- a/site-content/.svn/pristine/05/052b797b30b300ec4013adbad7597edbae189ef4.svn-base +++ /dev/null @@ -1,23 +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.analysis.integration (Apache Commons Math 3.5 Test API)</title> -<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> -</head> -<body> -<h1 class="bar"><a href="../../../../../../org/apache/commons/math3/analysis/integration/package-summary.html" target="classFrame">org.apache.commons.math3.analysis.integration</a></h1> -<div class="indexContainer"> -<h2 title="Classes">Classes</h2> -<ul title="Classes"> -<li><a href="IterativeLegendreGaussIntegratorTest.html" title="class in org.apache.commons.math3.analysis.integration" target="classFrame">IterativeLegendreGaussIntegratorTest</a></li> -<li><a href="LegendreGaussIntegratorTest.html" title="class in org.apache.commons.math3.analysis.integration" target="classFrame">LegendreGaussIntegratorTest</a></li> -<li><a href="MidPointIntegratorTest.html" title="class in org.apache.commons.math3.analysis.integration" target="classFrame">MidPointIntegratorTest</a></li> -<li><a href="RombergIntegratorTest.html" title="class in org.apache.commons.math3.analysis.integration" target="classFrame">RombergIntegratorTest</a></li> -<li><a href="SimpsonIntegratorTest.html" title="class in org.apache.commons.math3.analysis.integration" target="classFrame">SimpsonIntegratorTest</a></li> -<li><a href="TrapezoidIntegratorTest.html" title="class in org.apache.commons.math3.analysis.integration" target="classFrame">TrapezoidIntegratorTest</a></li> -</ul> -</div> -</body> -</html> http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/05/0533d43c08fd783748e7d41bbd88d187fb0f81d1.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/0533d43c08fd783748e7d41bbd88d187fb0f81d1.svn-base b/site-content/.svn/pristine/05/0533d43c08fd783748e7d41bbd88d187fb0f81d1.svn-base deleted file mode 100644 index f65db07..0000000 --- a/site-content/.svn/pristine/05/0533d43c08fd783748e7d41bbd88d187fb0f81d1.svn-base +++ /dev/null @@ -1,297 +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<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.math3.analysis.interpolation;<a name="line.17"></a> -<span class="sourceLineNo">018</span><a name="line.18"></a> -<span class="sourceLineNo">019</span>import org.apache.commons.math3.exception.DimensionMismatchException;<a name="line.19"></a> -<span class="sourceLineNo">020</span>import org.apache.commons.math3.exception.MathIllegalArgumentException;<a name="line.20"></a> -<span class="sourceLineNo">021</span>import org.apache.commons.math3.util.FastMath;<a name="line.21"></a> -<span class="sourceLineNo">022</span>import org.apache.commons.math3.analysis.TrivariateFunction;<a name="line.22"></a> -<span class="sourceLineNo">023</span>import org.junit.Assert;<a name="line.23"></a> -<span class="sourceLineNo">024</span>import org.junit.Test;<a name="line.24"></a> -<span class="sourceLineNo">025</span><a name="line.25"></a> -<span class="sourceLineNo">026</span>/**<a name="line.26"></a> -<span class="sourceLineNo">027</span> * Test case for the {@link TricubicInterpolator tricubic interpolator}.<a name="line.27"></a> -<span class="sourceLineNo">028</span> */<a name="line.28"></a> -<span class="sourceLineNo">029</span>public final class TricubicInterpolatorTest {<a name="line.29"></a> -<span class="sourceLineNo">030</span> /**<a name="line.30"></a> -<span class="sourceLineNo">031</span> * Test preconditions.<a name="line.31"></a> -<span class="sourceLineNo">032</span> */<a name="line.32"></a> -<span class="sourceLineNo">033</span> @Test<a name="line.33"></a> -<span class="sourceLineNo">034</span> public void testPreconditions() {<a name="line.34"></a> -<span class="sourceLineNo">035</span> double[] xval = new double[] {3, 4, 5, 6.5};<a name="line.35"></a> -<span class="sourceLineNo">036</span> double[] yval = new double[] {-4, -3, -1, 2.5};<a name="line.36"></a> -<span class="sourceLineNo">037</span> double[] zval = new double[] {-12, -8, -5.5, -3, 0, 2.5};<a name="line.37"></a> -<span class="sourceLineNo">038</span> double[][][] fval = new double[xval.length][yval.length][zval.length];<a name="line.38"></a> -<span class="sourceLineNo">039</span><a name="line.39"></a> -<span class="sourceLineNo">040</span> @SuppressWarnings("unused")<a name="line.40"></a> -<span class="sourceLineNo">041</span> TrivariateFunction tcf = new TricubicInterpolator().interpolate(xval, yval, zval, fval);<a name="line.41"></a> -<span class="sourceLineNo">042</span><a name="line.42"></a> -<span class="sourceLineNo">043</span> double[] wxval = new double[] {3, 2, 5, 6.5};<a name="line.43"></a> -<span class="sourceLineNo">044</span> try {<a name="line.44"></a> -<span class="sourceLineNo">045</span> tcf = new TricubicInterpolator().interpolate(wxval, yval, zval, fval);<a name="line.45"></a> -<span class="sourceLineNo">046</span> Assert.fail("an exception should have been thrown");<a name="line.46"></a> -<span class="sourceLineNo">047</span> } catch (MathIllegalArgumentException e) {<a name="line.47"></a> -<span class="sourceLineNo">048</span> // Expected<a name="line.48"></a> -<span class="sourceLineNo">049</span> }<a name="line.49"></a> -<span class="sourceLineNo">050</span> double[] wyval = new double[] {-4, -1, -1, 2.5};<a name="line.50"></a> -<span class="sourceLineNo">051</span> try {<a name="line.51"></a> -<span class="sourceLineNo">052</span> tcf = new TricubicInterpolator().interpolate(xval, wyval, zval, fval);<a name="line.52"></a> -<span class="sourceLineNo">053</span> Assert.fail("an exception should have been thrown");<a name="line.53"></a> -<span class="sourceLineNo">054</span> } catch (MathIllegalArgumentException e) {<a name="line.54"></a> -<span class="sourceLineNo">055</span> // Expected<a name="line.55"></a> -<span class="sourceLineNo">056</span> }<a name="line.56"></a> -<span class="sourceLineNo">057</span> double[] wzval = new double[] {-12, -8, -9, -3, 0, 2.5};<a name="line.57"></a> -<span class="sourceLineNo">058</span> try {<a name="line.58"></a> -<span class="sourceLineNo">059</span> tcf = new TricubicInterpolator().interpolate(xval, yval, wzval, fval);<a name="line.59"></a> -<span class="sourceLineNo">060</span> Assert.fail("an exception should have been thrown");<a name="line.60"></a> -<span class="sourceLineNo">061</span> } catch (MathIllegalArgumentException e) {<a name="line.61"></a> -<span class="sourceLineNo">062</span> // Expected<a name="line.62"></a> -<span class="sourceLineNo">063</span> }<a name="line.63"></a> -<span class="sourceLineNo">064</span> double[][][] wfval = new double[xval.length - 1][yval.length][zval.length];<a name="line.64"></a> -<span class="sourceLineNo">065</span> try {<a name="line.65"></a> -<span class="sourceLineNo">066</span> tcf = new TricubicInterpolator().interpolate(xval, yval, zval, wfval);<a name="line.66"></a> -<span class="sourceLineNo">067</span> Assert.fail("an exception should have been thrown");<a name="line.67"></a> -<span class="sourceLineNo">068</span> } catch (DimensionMismatchException e) {<a name="line.68"></a> -<span class="sourceLineNo">069</span> // Expected<a name="line.69"></a> -<span class="sourceLineNo">070</span> }<a name="line.70"></a> -<span class="sourceLineNo">071</span> wfval = new double[xval.length][yval.length - 1][zval.length];<a name="line.71"></a> -<span class="sourceLineNo">072</span> try {<a name="line.72"></a> -<span class="sourceLineNo">073</span> tcf = new TricubicInterpolator().interpolate(xval, yval, zval, wfval);<a name="line.73"></a> -<span class="sourceLineNo">074</span> Assert.fail("an exception should have been thrown");<a name="line.74"></a> -<span class="sourceLineNo">075</span> } catch (DimensionMismatchException e) {<a name="line.75"></a> -<span class="sourceLineNo">076</span> // Expected<a name="line.76"></a> -<span class="sourceLineNo">077</span> }<a name="line.77"></a> -<span class="sourceLineNo">078</span> wfval = new double[xval.length][yval.length][zval.length - 1];<a name="line.78"></a> -<span class="sourceLineNo">079</span> try {<a name="line.79"></a> -<span class="sourceLineNo">080</span> tcf = new TricubicInterpolator().interpolate(xval, yval, zval, wfval);<a name="line.80"></a> -<span class="sourceLineNo">081</span> Assert.fail("an exception should have been thrown");<a name="line.81"></a> -<span class="sourceLineNo">082</span> } catch (DimensionMismatchException e) {<a name="line.82"></a> -<span class="sourceLineNo">083</span> // Expected<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><a name="line.86"></a> -<span class="sourceLineNo">087</span> public void testIsValid() {<a name="line.87"></a> -<span class="sourceLineNo">088</span> double[] xval = new double[] {3, 4, 5, 6.5};<a name="line.88"></a> -<span class="sourceLineNo">089</span> double[] yval = new double[] {-4, -3, -1, 2.5};<a name="line.89"></a> -<span class="sourceLineNo">090</span> double[] zval = new double[] {-12, -8, -5.5, -3, 0, 2.5};<a name="line.90"></a> -<span class="sourceLineNo">091</span> double[][][] fval = new double[xval.length][yval.length][zval.length];<a name="line.91"></a> -<span class="sourceLineNo">092</span><a name="line.92"></a> -<span class="sourceLineNo">093</span> @SuppressWarnings("unused")<a name="line.93"></a> -<span class="sourceLineNo">094</span> TricubicInterpolatingFunction tcf = new TricubicInterpolator().interpolate(xval, yval, zval, fval);<a name="line.94"></a> -<span class="sourceLineNo">095</span><a name="line.95"></a> -<span class="sourceLineNo">096</span> // Valid.<a name="line.96"></a> -<span class="sourceLineNo">097</span> Assert.assertTrue(tcf.isValidPoint(4, -3, -8));<a name="line.97"></a> -<span class="sourceLineNo">098</span> Assert.assertTrue(tcf.isValidPoint(5, -3, -8));<a name="line.98"></a> -<span class="sourceLineNo">099</span> Assert.assertTrue(tcf.isValidPoint(4, -1, -8));<a name="line.99"></a> -<span class="sourceLineNo">100</span> Assert.assertTrue(tcf.isValidPoint(5, -1, -8));<a name="line.100"></a> -<span class="sourceLineNo">101</span> Assert.assertTrue(tcf.isValidPoint(4, -3, 0));<a name="line.101"></a> -<span class="sourceLineNo">102</span> Assert.assertTrue(tcf.isValidPoint(5, -3, 0));<a name="line.102"></a> -<span class="sourceLineNo">103</span> Assert.assertTrue(tcf.isValidPoint(4, -1, 0));<a name="line.103"></a> -<span class="sourceLineNo">104</span> Assert.assertTrue(tcf.isValidPoint(5, -1, 0));<a name="line.104"></a> -<span class="sourceLineNo">105</span><a name="line.105"></a> -<span class="sourceLineNo">106</span> // Invalid.<a name="line.106"></a> -<span class="sourceLineNo">107</span> Assert.assertFalse(tcf.isValidPoint(3.5, -3, -8));<a name="line.107"></a> -<span class="sourceLineNo">108</span> Assert.assertFalse(tcf.isValidPoint(4.5, -3.1, -8));<a name="line.108"></a> -<span class="sourceLineNo">109</span> Assert.assertFalse(tcf.isValidPoint(4.5, -2, 0));<a name="line.109"></a> -<span class="sourceLineNo">110</span> Assert.assertFalse(tcf.isValidPoint(4.5, 0, -3.5));<a name="line.110"></a> -<span class="sourceLineNo">111</span> Assert.assertFalse(tcf.isValidPoint(-10, 4.1, -1));<a name="line.111"></a> -<span class="sourceLineNo">112</span> }<a name="line.112"></a> -<span class="sourceLineNo">113</span><a name="line.113"></a> -<span class="sourceLineNo">114</span> /**<a name="line.114"></a> -<span class="sourceLineNo">115</span> * Test for a plane.<a name="line.115"></a> -<span class="sourceLineNo">116</span> * <p><a name="line.116"></a> -<span class="sourceLineNo">117</span> * f(x, y, z) = 2 x - 3 y - 4 z + 5<a name="line.117"></a> -<span class="sourceLineNo">118</span> * </p><a name="line.118"></a> -<span class="sourceLineNo">119</span> */<a name="line.119"></a> -<span class="sourceLineNo">120</span> @Test<a name="line.120"></a> -<span class="sourceLineNo">121</span> public void testPlane() {<a name="line.121"></a> -<span class="sourceLineNo">122</span> double[] xval = new double[] {3, 4, 5, 6.5};<a name="line.122"></a> -<span class="sourceLineNo">123</span> double[] yval = new double[] {-4, -3, -1, 2, 2.5};<a name="line.123"></a> -<span class="sourceLineNo">124</span> double[] zval = new double[] {-12, -8, -5.5, -3, 0, 2.5};<a name="line.124"></a> -<span class="sourceLineNo">125</span><a name="line.125"></a> -<span class="sourceLineNo">126</span> // Function values<a name="line.126"></a> -<span class="sourceLineNo">127</span> TrivariateFunction f = new TrivariateFunction() {<a name="line.127"></a> -<span class="sourceLineNo">128</span> public double value(double x, double y, double z) {<a name="line.128"></a> -<span class="sourceLineNo">129</span> return 2 * x - 3 * y - 4 * z + 5;<a name="line.129"></a> -<span class="sourceLineNo">130</span> }<a name="line.130"></a> -<span class="sourceLineNo">131</span> };<a name="line.131"></a> -<span class="sourceLineNo">132</span><a name="line.132"></a> -<span class="sourceLineNo">133</span> double[][][] fval = new double[xval.length][yval.length][zval.length];<a name="line.133"></a> -<span class="sourceLineNo">134</span><a name="line.134"></a> -<span class="sourceLineNo">135</span> for (int i = 0; i < xval.length; i++) {<a name="line.135"></a> -<span class="sourceLineNo">136</span> for (int j = 0; j < yval.length; j++) {<a name="line.136"></a> -<span class="sourceLineNo">137</span> for (int k = 0; k < zval.length; k++) {<a name="line.137"></a> -<span class="sourceLineNo">138</span> fval[i][j][k] = f.value(xval[i], yval[j], zval[k]);<a name="line.138"></a> -<span class="sourceLineNo">139</span> }<a name="line.139"></a> -<span class="sourceLineNo">140</span> }<a name="line.140"></a> -<span class="sourceLineNo">141</span> }<a name="line.141"></a> -<span class="sourceLineNo">142</span><a name="line.142"></a> -<span class="sourceLineNo">143</span> TrivariateFunction tcf = new TricubicInterpolator().interpolate(xval,<a name="line.143"></a> -<span class="sourceLineNo">144</span> yval,<a name="line.144"></a> -<span class="sourceLineNo">145</span> zval,<a name="line.145"></a> -<span class="sourceLineNo">146</span> fval);<a name="line.146"></a> -<span class="sourceLineNo">147</span> double x, y, z;<a name="line.147"></a> -<span class="sourceLineNo">148</span> double expected, result;<a name="line.148"></a> -<span class="sourceLineNo">149</span><a name="line.149"></a> -<span class="sourceLineNo">150</span> x = 4;<a name="line.150"></a> -<span class="sourceLineNo">151</span> y = -3;<a name="line.151"></a> -<span class="sourceLineNo">152</span> z = 0;<a name="line.152"></a> -<span class="sourceLineNo">153</span> expected = f.value(x, y, z);<a name="line.153"></a> -<span class="sourceLineNo">154</span> result = tcf.value(x, y, z);<a name="line.154"></a> -<span class="sourceLineNo">155</span> Assert.assertEquals("On sample point",<a name="line.155"></a> -<span class="sourceLineNo">156</span> expected, result, 1e-15);<a name="line.156"></a> -<span class="sourceLineNo">157</span><a name="line.157"></a> -<span class="sourceLineNo">158</span> x = 4.5;<a name="line.158"></a> -<span class="sourceLineNo">159</span> y = -1.5;<a name="line.159"></a> -<span class="sourceLineNo">160</span> z = -4.25;<a name="line.160"></a> -<span class="sourceLineNo">161</span> expected = f.value(x, y, z);<a name="line.161"></a> -<span class="sourceLineNo">162</span> result = tcf.value(x, y, z);<a name="line.162"></a> -<span class="sourceLineNo">163</span> Assert.assertEquals("Half-way between sample points (middle of the patch)",<a name="line.163"></a> -<span class="sourceLineNo">164</span> expected, result, 1e-14);<a name="line.164"></a> -<span class="sourceLineNo">165</span> }<a name="line.165"></a> -<span class="sourceLineNo">166</span><a name="line.166"></a> -<span class="sourceLineNo">167</span> /**<a name="line.167"></a> -<span class="sourceLineNo">168</span> * Sine wave.<a name="line.168"></a> -<span class="sourceLineNo">169</span> * <p><a name="line.169"></a> -<span class="sourceLineNo">170</span> * f(x, y, z) = a cos [&omega; z - k<sub>y</sub> x - k<sub>y</sub> y]<a name="line.170"></a> -<span class="sourceLineNo">171</span> * </p><a name="line.171"></a> -<span class="sourceLineNo">172</span> * with A = 0.2, &omega; = 0.5, k<sub>x</sub> = 2, k<sub>y</sub> = 1.<a name="line.172"></a> -<span class="sourceLineNo">173</span> */<a name="line.173"></a> -<span class="sourceLineNo">174</span> @Test<a name="line.174"></a> -<span class="sourceLineNo">175</span> public void testWave() {<a name="line.175"></a> -<span class="sourceLineNo">176</span> double[] xval = new double[] {3, 4, 5, 6.5};<a name="line.176"></a> -<span class="sourceLineNo">177</span> double[] yval = new double[] {-4, -3, -1, 2, 2.5};<a name="line.177"></a> -<span class="sourceLineNo">178</span> double[] zval = new double[] {-12, -8, -5.5, -3, 0, 4};<a name="line.178"></a> -<span class="sourceLineNo">179</span><a name="line.179"></a> -<span class="sourceLineNo">180</span> final double a = 0.2;<a name="line.180"></a> -<span class="sourceLineNo">181</span> final double omega = 0.5;<a name="line.181"></a> -<span class="sourceLineNo">182</span> final double kx = 2;<a name="line.182"></a> -<span class="sourceLineNo">183</span> final double ky = 1;<a name="line.183"></a> -<span class="sourceLineNo">184</span><a name="line.184"></a> -<span class="sourceLineNo">185</span> // Function values<a name="line.185"></a> -<span class="sourceLineNo">186</span> TrivariateFunction f = new TrivariateFunction() {<a name="line.186"></a> -<span class="sourceLineNo">187</span> public double value(double x, double y, double z) {<a name="line.187"></a> -<span class="sourceLineNo">188</span> return a * FastMath.cos(omega * z - kx * x - ky * y);<a name="line.188"></a> -<span class="sourceLineNo">189</span> }<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> double[][][] fval = new double[xval.length][yval.length][zval.length];<a name="line.192"></a> -<span class="sourceLineNo">193</span> for (int i = 0; i < xval.length; i++) {<a name="line.193"></a> -<span class="sourceLineNo">194</span> for (int j = 0; j < yval.length; j++) {<a name="line.194"></a> -<span class="sourceLineNo">195</span> for (int k = 0; k < zval.length; k++) {<a name="line.195"></a> -<span class="sourceLineNo">196</span> fval[i][j][k] = f.value(xval[i], yval[j], zval[k]);<a name="line.196"></a> -<span class="sourceLineNo">197</span> }<a name="line.197"></a> -<span class="sourceLineNo">198</span> }<a name="line.198"></a> -<span class="sourceLineNo">199</span> }<a name="line.199"></a> -<span class="sourceLineNo">200</span><a name="line.200"></a> -<span class="sourceLineNo">201</span> TrivariateFunction tcf = new TricubicInterpolator().interpolate(xval,<a name="line.201"></a> -<span class="sourceLineNo">202</span> yval,<a name="line.202"></a> -<span class="sourceLineNo">203</span> zval,<a name="line.203"></a> -<span class="sourceLineNo">204</span> fval);<a name="line.204"></a> -<span class="sourceLineNo">205</span><a name="line.205"></a> -<span class="sourceLineNo">206</span> double x, y, z;<a name="line.206"></a> -<span class="sourceLineNo">207</span> double expected, result;<a name="line.207"></a> -<span class="sourceLineNo">208</span><a name="line.208"></a> -<span class="sourceLineNo">209</span> x = 4;<a name="line.209"></a> -<span class="sourceLineNo">210</span> y = -3;<a name="line.210"></a> -<span class="sourceLineNo">211</span> z = 0;<a name="line.211"></a> -<span class="sourceLineNo">212</span> expected = f.value(x, y, z);<a name="line.212"></a> -<span class="sourceLineNo">213</span> result = tcf.value(x, y, z);<a name="line.213"></a> -<span class="sourceLineNo">214</span> Assert.assertEquals("On sample point",<a name="line.214"></a> -<span class="sourceLineNo">215</span> expected, result, 1e-14);<a name="line.215"></a> -<span class="sourceLineNo">216</span><a name="line.216"></a> -<span class="sourceLineNo">217</span> x = 4.5;<a name="line.217"></a> -<span class="sourceLineNo">218</span> y = -1.5;<a name="line.218"></a> -<span class="sourceLineNo">219</span> z = -4.25;<a name="line.219"></a> -<span class="sourceLineNo">220</span> expected = f.value(x, y, z);<a name="line.220"></a> -<span class="sourceLineNo">221</span> result = tcf.value(x, y, z);<a name="line.221"></a> -<span class="sourceLineNo">222</span> Assert.assertEquals("Half-way between sample points (middle of the patch)",<a name="line.222"></a> -<span class="sourceLineNo">223</span> expected, result, 1e-1); // XXX Too high tolerance!<a name="line.223"></a> -<span class="sourceLineNo">224</span> }<a name="line.224"></a> -<span class="sourceLineNo">225</span>}<a name="line.225"></a> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</pre> -</div> -</body> -</html> http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/05/0542b4deb2d10c511bb3af31f5af31893c459eca.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/0542b4deb2d10c511bb3af31f5af31893c459eca.svn-base b/site-content/.svn/pristine/05/0542b4deb2d10c511bb3af31f5af31893c459eca.svn-base deleted file mode 100644 index f760f7d..0000000 --- a/site-content/.svn/pristine/05/0542b4deb2d10c511bb3af31f5af31893c459eca.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>BrentOptimizer</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.optim.univariate</a> > <span class="el_class">BrentOptimizer</span></div><h1>BrentOptimizer</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">23 of 493</td><td class="ctr2">95%</td><td class="bar">5 of >74</td><td class="ctr2">93%</td><td class="ctr1">5</td><td >class="ctr2">42</td><td cla ss="ctr1">6</td><td class="ctr2">114</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a2"><a href="BrentOptimizer.java.html#L80" class="el_method">BrentOptimizer(double, double, ConvergenceChecker)</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="4" height="10" title="15" alt="15"/><img src="../.resources/greenbar.gif" width="5" height="10" title="18" alt="18"/></td><td class="ctr2" id="c4">55%</td><td class="bar" id="d1"><img src="../.resources/redbar.gif" width="4" height="10" title="2" alt="2"/><img src="../.resources/greenbar.gif" width="4" height="10" title="2" alt="2"/></td><td class="ctr2" id="e2">50%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g2">3</td><td class="ctr1" id="h0">2</td><td class="ctr2" id="i1">8</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="BrentOptimizer.java.html#L115" class="el_method">doOptimize()</a></td><td class="bar" id="b1"><img src ="../.resources/redbar.gif" width="1" height="10" title="4" alt="4"/><img src="../.resources/greenbar.gif" width="118" height="10" title="407" alt="407"/></td><td class="ctr2" id="c2">99%</td><td class="bar" id="d2"><img src="../.resources/redbar.gif" width="2" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="118" height="10" title="59" alt="59"/></td><td class="ctr2" id="e0">98%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g0">31</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i0">95</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="BrentOptimizer.java.html#L301" class="el_method">best(UnivariatePointValuePair, UnivariatePointValuePair, boolean)</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="1" height="10" title="4" alt="4"/><img src="../.resources/greenbar.gif" width="7" height="10" title="26" alt="26"/></td><td class="ctr2" id="c3">87%</td><td class="bar" id="d0 "><img src="../.resources/redbar.gif" width="4" height="10" title="2" alt="2"/><img src="../.resources/greenbar.gif" width="16" height="10" title="8" alt="8"/></td><td class="ctr2" id="e1">80%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">6</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i2">7</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a4"><a href="BrentOptimizer.java.html#L47" class="el_method">static {...}</a></td><td class="bar" id="b3"><img src="../.resources/greenbar.gif" width="3" height="10" title="13" alt="13"/></td><td class="ctr2" id="c0">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="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a1"><a href="BrentOptimizer.java.html#L109" class="el_method">BrentOptimizer(double, double)</a></td><td class ="bar" id="b4"><img src="../.resources/greenbar.gif" width="1" height="10" title="6" alt="6"/></td><td class="ctr2" id="c1">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">2</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-complex/blob/b3576eeb/site-content/.svn/pristine/05/05436f8ac5edd2a788065c849d3256eff4ab8abd.svn-base ---------------------------------------------------------------------- diff --git a/site-content/.svn/pristine/05/05436f8ac5edd2a788065c849d3256eff4ab8abd.svn-base b/site-content/.svn/pristine/05/05436f8ac5edd2a788065c849d3256eff4ab8abd.svn-base deleted file mode 100644 index ce44b04..0000000 --- a/site-content/.svn/pristine/05/05436f8ac5edd2a788065c849d3256eff4ab8abd.svn-base +++ /dev/null @@ -1,152 +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>FourthMoment.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 Math</a> > <a href="index.source.html" class="el_package">org.apache.commons.math3.stat.descriptive.moment</a> > <span class="el_source">FourthMoment .java</span></div><h1>FourthMoment.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.math3.stat.descriptive.moment; - -import java.io.Serializable; - -import org.apache.commons.math3.exception.NullArgumentException; -import org.apache.commons.math3.util.MathUtils; - -/** - * Computes a statistic related to the Fourth Central Moment. Specifically, - * what is computed is the sum of - * <p> - * (x_i - xbar) ^ 4, </p> - * <p> - * where the x_i are the - * sample observations and xbar is the sample mean. </p> - * <p> - * The following recursive updating formula is used: </p> - * <p> - * Let <ul> - * <li> dev = (current obs - previous mean) </li> - * <li> m2 = previous value of {@link SecondMoment} </li> - * <li> m2 = previous value of {@link ThirdMoment} </li> - * <li> n = number of observations (including current obs) </li> - * </ul> - * Then </p> - * <p> - * new value = old value - 4 * (dev/n) * m3 + 6 * (dev/n)^2 * m2 + <br> - * [n^2 - 3 * (n-1)] * dev^4 * (n-1) / n^3 </p> - * <p> - * Returns <code>Double.NaN</code> if no data values have been added and - * returns <code>0</code> if there is just one value in the data set. Note that - * Double.NaN may also be returned if the input includes NaN and / or infinite - * values. </p> - * <p> - * <strong>Note that this implementation is not synchronized.</strong> If - * multiple threads access an instance of this class concurrently, and at least - * one of the threads invokes the <code>increment()</code> or - * <code>clear()</code> method, it must be synchronized externally. </p> - * - */ -class FourthMoment extends ThirdMoment implements Serializable{ - - /** Serializable version identifier */ - private static final long serialVersionUID = 4763990447117157611L; - - /** fourth moment of values that have been added */ - private double m4; - - /** - * Create a FourthMoment instance - */ - FourthMoment() { -<span class="fc" id="L69"> super();</span> -<span class="fc" id="L70"> m4 = Double.NaN;</span> -<span class="fc" id="L71"> }</span> - - /** - * Copy constructor, creates a new {@code FourthMoment} identical - * to the {@code original} - * - * @param original the {@code FourthMoment} instance to copy - * @throws NullArgumentException if original is null - */ - FourthMoment(FourthMoment original) throws NullArgumentException { -<span class="nc" id="L81"> super();</span> -<span class="nc" id="L82"> copy(original, this);</span> -<span class="nc" id="L83"> }</span> - - /** - * {@inheritDoc} - */ - @Override - public void increment(final double d) { -<span class="fc bfc" id="L90" title="All 2 branches covered."> if (n < 1) {</span> -<span class="fc" id="L91"> m4 = 0.0;</span> -<span class="fc" id="L92"> m3 = 0.0;</span> -<span class="fc" id="L93"> m2 = 0.0;</span> -<span class="fc" id="L94"> m1 = 0.0;</span> - } - -<span class="fc" id="L97"> double prevM3 = m3;</span> -<span class="fc" id="L98"> double prevM2 = m2;</span> - -<span class="fc" id="L100"> super.increment(d);</span> - -<span class="fc" id="L102"> double n0 = n;</span> - -<span class="fc" id="L104"> m4 = m4 - 4.0 * nDev * prevM3 + 6.0 * nDevSq * prevM2 +</span> - ((n0 * n0) - 3 * (n0 -1)) * (nDevSq * nDevSq * (n0 - 1) * n0); -<span class="fc" id="L106"> }</span> - - /** - * {@inheritDoc} - */ - @Override - public double getResult() { -<span class="fc" id="L113"> return m4;</span> - } - - /** - * {@inheritDoc} - */ - @Override - public void clear() { -<span class="fc" id="L121"> super.clear();</span> -<span class="fc" id="L122"> m4 = Double.NaN;</span> -<span class="fc" id="L123"> }</span> - - /** - * {@inheritDoc} - */ - @Override - public FourthMoment copy() { -<span class="fc" id="L130"> FourthMoment result = new FourthMoment();</span> - // No try-catch or advertised exception because args are guaranteed non-null -<span class="fc" id="L132"> copy(this, result);</span> -<span class="fc" id="L133"> return result;</span> - } - - /** - * Copies source to dest. - * <p>Neither source nor dest can be null.</p> - * - * @param source FourthMoment to copy - * @param dest FourthMoment to copy to - * @throws NullArgumentException if either source or dest is null - */ - public static void copy(FourthMoment source, FourthMoment dest) - throws NullArgumentException { -<span class="fc" id="L146"> MathUtils.checkNotNull(source);</span> -<span class="fc" id="L147"> MathUtils.checkNotNull(dest);</span> -<span class="fc" id="L148"> ThirdMoment.copy(source, dest);</span> -<span class="fc" id="L149"> dest.m4 = source.m4;</span> -<span class="fc" id="L150"> }</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
