commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [39/51] [partial] commons-complex git commit: Removed "site-content" directory.
Date Fri, 06 Jan 2017 17:10:19 GMT
http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/01/019a39efbb775602a7666dc02926deacb70fcd96.svn-base
----------------------------------------------------------------------
diff --git a/site-content/.svn/pristine/01/019a39efbb775602a7666dc02926deacb70fcd96.svn-base b/site-content/.svn/pristine/01/019a39efbb775602a7666dc02926deacb70fcd96.svn-base
deleted file mode 100644
index bf5a99f..0000000
--- a/site-content/.svn/pristine/01/019a39efbb775602a7666dc02926deacb70fcd96.svn-base
+++ /dev/null
@@ -1,277 +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><a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.commons.math3.analysis.function;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import org.apache.commons.math3.analysis.DifferentiableUnivariateFunction;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import org.apache.commons.math3.analysis.FunctionUtils;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.commons.math3.analysis.UnivariateFunction;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.commons.math3.analysis.differentiation.DerivativeStructure;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.commons.math3.exception.DimensionMismatchException;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.commons.math3.util.FastMath;<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> * &lt;a href="http://en.wikipedia.org/wiki/Sinc_function"&gt;Sinc&lt;/a&gt; function,<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * defined by<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * &lt;pre&gt;&lt;code&gt;<a name="line.31"></a>
-<span class="sourceLineNo">032</span> *   sinc(x) = 1            if x = 0,<a name="line.32"></a>
-<span class="sourceLineNo">033</span> *             sin(x) / x   otherwise.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * &lt;/code&gt;&lt;/pre&gt;<a name="line.34"></a>
-<span class="sourceLineNo">035</span> *<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * @since 3.0<a name="line.36"></a>
-<span class="sourceLineNo">037</span> */<a name="line.37"></a>
-<span class="sourceLineNo">038</span>public class Sinc implements UnivariateDifferentiableFunction, DifferentiableUnivariateFunction {<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    /**<a name="line.39"></a>
-<span class="sourceLineNo">040</span>     * Value below which the computations are done using Taylor series.<a name="line.40"></a>
-<span class="sourceLineNo">041</span>     * &lt;p&gt;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>     * The Taylor series for sinc even order derivatives are:<a name="line.42"></a>
-<span class="sourceLineNo">043</span>     * &lt;pre&gt;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>     * d^(2n)sinc/dx^(2n)     = Sum_(k&gt;=0) (-1)^(n+k) / ((2k)!(2n+2k+1)) x^(2k)<a name="line.44"></a>
-<span class="sourceLineNo">045</span>     *                        = (-1)^n     [ 1/(2n+1) - x^2/(4n+6) + x^4/(48n+120) - x^6/(1440n+5040) + O(x^8) ]<a name="line.45"></a>
-<span class="sourceLineNo">046</span>     * &lt;/pre&gt;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>     * &lt;/p&gt;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>     * &lt;p&gt;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>     * The Taylor series for sinc odd order derivatives are:<a name="line.49"></a>
-<span class="sourceLineNo">050</span>     * &lt;pre&gt;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>     * d^(2n+1)sinc/dx^(2n+1) = Sum_(k&gt;=0) (-1)^(n+k+1) / ((2k+1)!(2n+2k+3)) x^(2k+1)<a name="line.51"></a>
-<span class="sourceLineNo">052</span>     *                        = (-1)^(n+1) [ x/(2n+3) - x^3/(12n+30) + x^5/(240n+840) - x^7/(10080n+45360) + O(x^9) ]<a name="line.52"></a>
-<span class="sourceLineNo">053</span>     * &lt;/pre&gt;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>     * &lt;/p&gt;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>     * &lt;p&gt;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>     * So the ratio of the fourth term with respect to the first term<a name="line.56"></a>
-<span class="sourceLineNo">057</span>     * is always smaller than x^6/720, for all derivative orders.<a name="line.57"></a>
-<span class="sourceLineNo">058</span>     * This implies that neglecting this term and using only the first three terms induces<a name="line.58"></a>
-<span class="sourceLineNo">059</span>     * a relative error bounded by x^6/720. The SHORTCUT value is chosen such that this<a name="line.59"></a>
-<span class="sourceLineNo">060</span>     * relative error is below double precision accuracy when |x| &lt;= SHORTCUT.<a name="line.60"></a>
-<span class="sourceLineNo">061</span>     * &lt;/p&gt;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>     */<a name="line.62"></a>
-<span class="sourceLineNo">063</span>    private static final double SHORTCUT = 6.0e-3;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    /** For normalized sinc function. */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    private final boolean normalized;<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>     * The sinc function, {@code sin(x) / x}.<a name="line.68"></a>
-<span class="sourceLineNo">069</span>     */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    public Sinc() {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>        this(false);<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
-<span class="sourceLineNo">073</span><a name="line.73"></a>
-<span class="sourceLineNo">074</span>    /**<a name="line.74"></a>
-<span class="sourceLineNo">075</span>     * Instantiates the sinc function.<a name="line.75"></a>
-<span class="sourceLineNo">076</span>     *<a name="line.76"></a>
-<span class="sourceLineNo">077</span>     * @param normalized If {@code true}, the function is<a name="line.77"></a>
-<span class="sourceLineNo">078</span>     * &lt;code&gt; sin(&amp;pi;x) / &amp;pi;x&lt;/code&gt;, otherwise {@code sin(x) / x}.<a name="line.78"></a>
-<span class="sourceLineNo">079</span>     */<a name="line.79"></a>
-<span class="sourceLineNo">080</span>    public Sinc(boolean normalized) {<a name="line.80"></a>
-<span class="sourceLineNo">081</span>        this.normalized = normalized;<a name="line.81"></a>
-<span class="sourceLineNo">082</span>    }<a name="line.82"></a>
-<span class="sourceLineNo">083</span><a name="line.83"></a>
-<span class="sourceLineNo">084</span>    /** {@inheritDoc} */<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    public double value(final double x) {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>        final double scaledX = normalized ? FastMath.PI * x : x;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>        if (FastMath.abs(scaledX) &lt;= SHORTCUT) {<a name="line.87"></a>
-<span class="sourceLineNo">088</span>            // use Taylor series<a name="line.88"></a>
-<span class="sourceLineNo">089</span>            final double scaledX2 = scaledX * scaledX;<a name="line.89"></a>
-<span class="sourceLineNo">090</span>            return ((scaledX2 - 20) * scaledX2 + 120) / 120;<a name="line.90"></a>
-<span class="sourceLineNo">091</span>        } else {<a name="line.91"></a>
-<span class="sourceLineNo">092</span>            // use definition expression<a name="line.92"></a>
-<span class="sourceLineNo">093</span>            return FastMath.sin(scaledX) / scaledX;<a name="line.93"></a>
-<span class="sourceLineNo">094</span>        }<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    }<a name="line.95"></a>
-<span class="sourceLineNo">096</span><a name="line.96"></a>
-<span class="sourceLineNo">097</span>    /** {@inheritDoc}<a name="line.97"></a>
-<span class="sourceLineNo">098</span>     * @deprecated as of 3.1, replaced by {@link #value(DerivativeStructure)}<a name="line.98"></a>
-<span class="sourceLineNo">099</span>     */<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    @Deprecated<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    public UnivariateFunction derivative() {<a name="line.101"></a>
-<span class="sourceLineNo">102</span>        return FunctionUtils.toDifferentiableUnivariateFunction(this).derivative();<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>    /** {@inheritDoc}<a name="line.105"></a>
-<span class="sourceLineNo">106</span>     * @since 3.1<a name="line.106"></a>
-<span class="sourceLineNo">107</span>     */<a name="line.107"></a>
-<span class="sourceLineNo">108</span>    public DerivativeStructure value(final DerivativeStructure t)<a name="line.108"></a>
-<span class="sourceLineNo">109</span>        throws DimensionMismatchException {<a name="line.109"></a>
-<span class="sourceLineNo">110</span><a name="line.110"></a>
-<span class="sourceLineNo">111</span>        final double scaledX  = (normalized ? FastMath.PI : 1) * t.getValue();<a name="line.111"></a>
-<span class="sourceLineNo">112</span>        final double scaledX2 = scaledX * scaledX;<a name="line.112"></a>
-<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span>        double[] f = new double[t.getOrder() + 1];<a name="line.114"></a>
-<span class="sourceLineNo">115</span><a name="line.115"></a>
-<span class="sourceLineNo">116</span>        if (FastMath.abs(scaledX) &lt;= SHORTCUT) {<a name="line.116"></a>
-<span class="sourceLineNo">117</span><a name="line.117"></a>
-<span class="sourceLineNo">118</span>            for (int i = 0; i &lt; f.length; ++i) {<a name="line.118"></a>
-<span class="sourceLineNo">119</span>                final int k = i / 2;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>                if ((i &amp; 0x1) == 0) {<a name="line.120"></a>
-<span class="sourceLineNo">121</span>                    // even derivation order<a name="line.121"></a>
-<span class="sourceLineNo">122</span>                    f[i] = (((k &amp; 0x1) == 0) ? 1 : -1) *<a name="line.122"></a>
-<span class="sourceLineNo">123</span>                           (1.0 / (i + 1) - scaledX2 * (1.0 / (2 * i + 6) - scaledX2 / (24 * i + 120)));<a name="line.123"></a>
-<span class="sourceLineNo">124</span>                } else {<a name="line.124"></a>
-<span class="sourceLineNo">125</span>                    // odd derivation order<a name="line.125"></a>
-<span class="sourceLineNo">126</span>                    f[i] = (((k &amp; 0x1) == 0) ? -scaledX : scaledX) *<a name="line.126"></a>
-<span class="sourceLineNo">127</span>                           (1.0 / (i + 2) - scaledX2 * (1.0 / (6 * i + 24) - scaledX2 / (120 * i + 720)));<a name="line.127"></a>
-<span class="sourceLineNo">128</span>                }<a name="line.128"></a>
-<span class="sourceLineNo">129</span>            }<a name="line.129"></a>
-<span class="sourceLineNo">130</span><a name="line.130"></a>
-<span class="sourceLineNo">131</span>        } else {<a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span>            final double inv = 1 / scaledX;<a name="line.133"></a>
-<span class="sourceLineNo">134</span>            final double cos = FastMath.cos(scaledX);<a name="line.134"></a>
-<span class="sourceLineNo">135</span>            final double sin = FastMath.sin(scaledX);<a name="line.135"></a>
-<span class="sourceLineNo">136</span><a name="line.136"></a>
-<span class="sourceLineNo">137</span>            f[0] = inv * sin;<a name="line.137"></a>
-<span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span>            // the nth order derivative of sinc has the form:<a name="line.139"></a>
-<span class="sourceLineNo">140</span>            // dn(sinc(x)/dxn = [S_n(x) sin(x) + C_n(x) cos(x)] / x^(n+1)<a name="line.140"></a>
-<span class="sourceLineNo">141</span>            // where S_n(x) is an even polynomial with degree n-1 or n (depending on parity)<a name="line.141"></a>
-<span class="sourceLineNo">142</span>            // and C_n(x) is an odd polynomial with degree n-1 or n (depending on parity)<a name="line.142"></a>
-<span class="sourceLineNo">143</span>            // S_0(x) = 1, S_1(x) = -1, S_2(x) = -x^2 + 2, S_3(x) = 3x^2 - 6...<a name="line.143"></a>
-<span class="sourceLineNo">144</span>            // C_0(x) = 0, C_1(x) = x, C_2(x) = -2x, C_3(x) = -x^3 + 6x...<a name="line.144"></a>
-<span class="sourceLineNo">145</span>            // the general recurrence relations for S_n and C_n are:<a name="line.145"></a>
-<span class="sourceLineNo">146</span>            // S_n(x) = x S_(n-1)'(x) - n S_(n-1)(x) - x C_(n-1)(x)<a name="line.146"></a>
-<span class="sourceLineNo">147</span>            // C_n(x) = x C_(n-1)'(x) - n C_(n-1)(x) + x S_(n-1)(x)<a name="line.147"></a>
-<span class="sourceLineNo">148</span>            // as per polynomials parity, we can store both S_n and C_n in the same array<a name="line.148"></a>
-<span class="sourceLineNo">149</span>            final double[] sc = new double[f.length];<a name="line.149"></a>
-<span class="sourceLineNo">150</span>            sc[0] = 1;<a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>            double coeff = inv;<a name="line.152"></a>
-<span class="sourceLineNo">153</span>            for (int n = 1; n &lt; f.length; ++n) {<a name="line.153"></a>
-<span class="sourceLineNo">154</span><a name="line.154"></a>
-<span class="sourceLineNo">155</span>                double s = 0;<a name="line.155"></a>
-<span class="sourceLineNo">156</span>                double c = 0;<a name="line.156"></a>
-<span class="sourceLineNo">157</span><a name="line.157"></a>
-<span class="sourceLineNo">158</span>                // update and evaluate polynomials S_n(x) and C_n(x)<a name="line.158"></a>
-<span class="sourceLineNo">159</span>                final int kStart;<a name="line.159"></a>
-<span class="sourceLineNo">160</span>                if ((n &amp; 0x1) == 0) {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>                    // even derivation order, S_n is degree n and C_n is degree n-1<a name="line.161"></a>
-<span class="sourceLineNo">162</span>                    sc[n] = 0;<a name="line.162"></a>
-<span class="sourceLineNo">163</span>                    kStart = n;<a name="line.163"></a>
-<span class="sourceLineNo">164</span>                } else {<a name="line.164"></a>
-<span class="sourceLineNo">165</span>                    // odd derivation order, S_n is degree n-1 and C_n is degree n<a name="line.165"></a>
-<span class="sourceLineNo">166</span>                    sc[n] = sc[n - 1];<a name="line.166"></a>
-<span class="sourceLineNo">167</span>                    c = sc[n];<a name="line.167"></a>
-<span class="sourceLineNo">168</span>                    kStart = n - 1;<a name="line.168"></a>
-<span class="sourceLineNo">169</span>                }<a name="line.169"></a>
-<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span>                // in this loop, k is always even<a name="line.171"></a>
-<span class="sourceLineNo">172</span>                for (int k = kStart; k &gt; 1; k -= 2) {<a name="line.172"></a>
-<span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span>                    // sine part<a name="line.174"></a>
-<span class="sourceLineNo">175</span>                    sc[k]     = (k - n) * sc[k] - sc[k - 1];<a name="line.175"></a>
-<span class="sourceLineNo">176</span>                    s         = s * scaledX2 + sc[k];<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>                    // cosine part<a name="line.178"></a>
-<span class="sourceLineNo">179</span>                    sc[k - 1] = (k - 1 - n) * sc[k - 1] + sc[k -2];<a name="line.179"></a>
-<span class="sourceLineNo">180</span>                    c         = c * scaledX2 + sc[k - 1];<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>                }<a name="line.182"></a>
-<span class="sourceLineNo">183</span>                sc[0] *= -n;<a name="line.183"></a>
-<span class="sourceLineNo">184</span>                s      = s * scaledX2 + sc[0];<a name="line.184"></a>
-<span class="sourceLineNo">185</span><a name="line.185"></a>
-<span class="sourceLineNo">186</span>                coeff *= inv;<a name="line.186"></a>
-<span class="sourceLineNo">187</span>                f[n]   = coeff * (s * sin + c * scaledX * cos);<a name="line.187"></a>
-<span class="sourceLineNo">188</span><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><a name="line.192"></a>
-<span class="sourceLineNo">193</span>        if (normalized) {<a name="line.193"></a>
-<span class="sourceLineNo">194</span>            double scale = FastMath.PI;<a name="line.194"></a>
-<span class="sourceLineNo">195</span>            for (int i = 1; i &lt; f.length; ++i) {<a name="line.195"></a>
-<span class="sourceLineNo">196</span>                f[i]  *= scale;<a name="line.196"></a>
-<span class="sourceLineNo">197</span>                scale *= FastMath.PI;<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>        return t.compose(f);<a name="line.201"></a>
-<span class="sourceLineNo">202</span><a name="line.202"></a>
-<span class="sourceLineNo">203</span>    }<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span>}<a name="line.205"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/01/019ba2079f43dde18533cc55b38d33e7f822ae6f.svn-base
----------------------------------------------------------------------
diff --git a/site-content/.svn/pristine/01/019ba2079f43dde18533cc55b38d33e7f822ae6f.svn-base b/site-content/.svn/pristine/01/019ba2079f43dde18533cc55b38d33e7f822ae6f.svn-base
deleted file mode 100644
index e167fa2..0000000
--- a/site-content/.svn/pristine/01/019ba2079f43dde18533cc55b38d33e7f822ae6f.svn-base
+++ /dev/null
@@ -1,442 +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.fitting.leastsquares;<a name="line.17"></a>
-<span class="sourceLineNo">018</span><a name="line.18"></a>
-<span class="sourceLineNo">019</span>import java.io.BufferedReader;<a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.io.IOException;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import java.util.ArrayList;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.commons.math3.analysis.MultivariateVectorFunction;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.commons.math3.analysis.MultivariateMatrixFunction;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.commons.math3.util.MathArrays;<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> * This class gives access to the statistical reference datasets provided by the<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * NIST (available<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * &lt;a href="http://www.itl.nist.gov/div898/strd/general/dataarchive.html"&gt;here&lt;/a&gt;).<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * Instances of this class can be created by invocation of the<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * {@link StatisticalReferenceDatasetFactory}.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> */<a name="line.32"></a>
-<span class="sourceLineNo">033</span>public abstract class StatisticalReferenceDataset {<a name="line.33"></a>
-<span class="sourceLineNo">034</span>    /** The name of this dataset. */<a name="line.34"></a>
-<span class="sourceLineNo">035</span>    private final String name;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>    /** The total number of observations (data points). */<a name="line.36"></a>
-<span class="sourceLineNo">037</span>    private final int numObservations;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>    /** The total number of parameters. */<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    private final int numParameters;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>    /** The total number of starting points for the optimizations. */<a name="line.40"></a>
-<span class="sourceLineNo">041</span>    private final int numStartingPoints;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>    /** The values of the predictor. */<a name="line.42"></a>
-<span class="sourceLineNo">043</span>    private final double[] x;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>    /** The values of the response. */<a name="line.44"></a>
-<span class="sourceLineNo">045</span>    private final double[] y;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>    /**<a name="line.46"></a>
-<span class="sourceLineNo">047</span>     * The starting values. {@code startingValues[j][i]} is the value of the<a name="line.47"></a>
-<span class="sourceLineNo">048</span>     * {@code i}-th parameter in the {@code j}-th set of starting values.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>     */<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    private final double[][] startingValues;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>    /** The certified values of the parameters. */<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    private final double[] a;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    /** The certified values of the standard deviation of the parameters. */<a name="line.53"></a>
-<span class="sourceLineNo">054</span>    private final double[] sigA;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>    /** The certified value of the residual sum of squares. */<a name="line.55"></a>
-<span class="sourceLineNo">056</span>    private double residualSumOfSquares;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    /** The least-squares problem. */<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    private final LeastSquaresProblem problem;<a name="line.58"></a>
-<span class="sourceLineNo">059</span><a name="line.59"></a>
-<span class="sourceLineNo">060</span>    /**<a name="line.60"></a>
-<span class="sourceLineNo">061</span>     * Creates a new instance of this class from the specified data file. The<a name="line.61"></a>
-<span class="sourceLineNo">062</span>     * file must follow the StRD format.<a name="line.62"></a>
-<span class="sourceLineNo">063</span>     *<a name="line.63"></a>
-<span class="sourceLineNo">064</span>     * @param in the data file<a name="line.64"></a>
-<span class="sourceLineNo">065</span>     * @throws IOException if an I/O error occurs<a name="line.65"></a>
-<span class="sourceLineNo">066</span>     */<a name="line.66"></a>
-<span class="sourceLineNo">067</span>    public StatisticalReferenceDataset(final BufferedReader in)<a name="line.67"></a>
-<span class="sourceLineNo">068</span>        throws IOException {<a name="line.68"></a>
-<span class="sourceLineNo">069</span><a name="line.69"></a>
-<span class="sourceLineNo">070</span>        final ArrayList&lt;String&gt; lines = new ArrayList&lt;String&gt;();<a name="line.70"></a>
-<span class="sourceLineNo">071</span>        for (String line = in.readLine(); line != null; line = in.readLine()) {<a name="line.71"></a>
-<span class="sourceLineNo">072</span>            lines.add(line);<a name="line.72"></a>
-<span class="sourceLineNo">073</span>        }<a name="line.73"></a>
-<span class="sourceLineNo">074</span>        int[] index = findLineNumbers("Data", lines);<a name="line.74"></a>
-<span class="sourceLineNo">075</span>        if (index == null) {<a name="line.75"></a>
-<span class="sourceLineNo">076</span>            throw new AssertionError("could not find line indices for data");<a name="line.76"></a>
-<span class="sourceLineNo">077</span>        }<a name="line.77"></a>
-<span class="sourceLineNo">078</span>        this.numObservations = index[1] - index[0] + 1;<a name="line.78"></a>
-<span class="sourceLineNo">079</span>        this.x = new double[this.numObservations];<a name="line.79"></a>
-<span class="sourceLineNo">080</span>        this.y = new double[this.numObservations];<a name="line.80"></a>
-<span class="sourceLineNo">081</span>        for (int i = 0; i &lt; this.numObservations; i++) {<a name="line.81"></a>
-<span class="sourceLineNo">082</span>            final String line = lines.get(index[0] + i - 1);<a name="line.82"></a>
-<span class="sourceLineNo">083</span>            final String[] tokens = line.trim().split(" ++");<a name="line.83"></a>
-<span class="sourceLineNo">084</span>            // Data columns are in reverse order!!!<a name="line.84"></a>
-<span class="sourceLineNo">085</span>            this.y[i] = Double.parseDouble(tokens[0]);<a name="line.85"></a>
-<span class="sourceLineNo">086</span>            this.x[i] = Double.parseDouble(tokens[1]);<a name="line.86"></a>
-<span class="sourceLineNo">087</span>        }<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
-<span class="sourceLineNo">089</span>        index = findLineNumbers("Starting Values", lines);<a name="line.89"></a>
-<span class="sourceLineNo">090</span>        if (index == null) {<a name="line.90"></a>
-<span class="sourceLineNo">091</span>            throw new AssertionError(<a name="line.91"></a>
-<span class="sourceLineNo">092</span>                                     "could not find line indices for starting values");<a name="line.92"></a>
-<span class="sourceLineNo">093</span>        }<a name="line.93"></a>
-<span class="sourceLineNo">094</span>        this.numParameters = index[1] - index[0] + 1;<a name="line.94"></a>
-<span class="sourceLineNo">095</span><a name="line.95"></a>
-<span class="sourceLineNo">096</span>        double[][] start = null;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>        this.a = new double[numParameters];<a name="line.97"></a>
-<span class="sourceLineNo">098</span>        this.sigA = new double[numParameters];<a name="line.98"></a>
-<span class="sourceLineNo">099</span>        for (int i = 0; i &lt; numParameters; i++) {<a name="line.99"></a>
-<span class="sourceLineNo">100</span>            final String line = lines.get(index[0] + i - 1);<a name="line.100"></a>
-<span class="sourceLineNo">101</span>            final String[] tokens = line.trim().split(" ++");<a name="line.101"></a>
-<span class="sourceLineNo">102</span>            if (start == null) {<a name="line.102"></a>
-<span class="sourceLineNo">103</span>                start = new double[tokens.length - 4][numParameters];<a name="line.103"></a>
-<span class="sourceLineNo">104</span>            }<a name="line.104"></a>
-<span class="sourceLineNo">105</span>            for (int j = 2; j &lt; tokens.length - 2; j++) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>                start[j - 2][i] = Double.parseDouble(tokens[j]);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>            }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>            this.a[i] = Double.parseDouble(tokens[tokens.length - 2]);<a name="line.108"></a>
-<span class="sourceLineNo">109</span>            this.sigA[i] = Double.parseDouble(tokens[tokens.length - 1]);<a name="line.109"></a>
-<span class="sourceLineNo">110</span>        }<a name="line.110"></a>
-<span class="sourceLineNo">111</span>        if (start == null) {<a name="line.111"></a>
-<span class="sourceLineNo">112</span>            throw new IOException("could not find starting values");<a name="line.112"></a>
-<span class="sourceLineNo">113</span>        }<a name="line.113"></a>
-<span class="sourceLineNo">114</span>        this.numStartingPoints = start.length;<a name="line.114"></a>
-<span class="sourceLineNo">115</span>        this.startingValues = start;<a name="line.115"></a>
-<span class="sourceLineNo">116</span><a name="line.116"></a>
-<span class="sourceLineNo">117</span>        double dummyDouble = Double.NaN;<a name="line.117"></a>
-<span class="sourceLineNo">118</span>        String dummyString = null;<a name="line.118"></a>
-<span class="sourceLineNo">119</span>        for (String line : lines) {<a name="line.119"></a>
-<span class="sourceLineNo">120</span>            if (line.contains("Dataset Name:")) {<a name="line.120"></a>
-<span class="sourceLineNo">121</span>                dummyString = line<a name="line.121"></a>
-<span class="sourceLineNo">122</span>                    .substring(line.indexOf("Dataset Name:") + 13,<a name="line.122"></a>
-<span class="sourceLineNo">123</span>                               line.indexOf("(")).trim();<a name="line.123"></a>
-<span class="sourceLineNo">124</span>            }<a name="line.124"></a>
-<span class="sourceLineNo">125</span>            if (line.contains("Residual Sum of Squares")) {<a name="line.125"></a>
-<span class="sourceLineNo">126</span>                final String[] tokens = line.split(" ++");<a name="line.126"></a>
-<span class="sourceLineNo">127</span>                dummyDouble = Double.parseDouble(tokens[4].trim());<a name="line.127"></a>
-<span class="sourceLineNo">128</span>            }<a name="line.128"></a>
-<span class="sourceLineNo">129</span>        }<a name="line.129"></a>
-<span class="sourceLineNo">130</span>        if (Double.isNaN(dummyDouble)) {<a name="line.130"></a>
-<span class="sourceLineNo">131</span>            throw new IOException(<a name="line.131"></a>
-<span class="sourceLineNo">132</span>                                  "could not find certified value of residual sum of squares");<a name="line.132"></a>
-<span class="sourceLineNo">133</span>        }<a name="line.133"></a>
-<span class="sourceLineNo">134</span>        this.residualSumOfSquares = dummyDouble;<a name="line.134"></a>
-<span class="sourceLineNo">135</span><a name="line.135"></a>
-<span class="sourceLineNo">136</span>        if (dummyString == null) {<a name="line.136"></a>
-<span class="sourceLineNo">137</span>            throw new IOException("could not find dataset name");<a name="line.137"></a>
-<span class="sourceLineNo">138</span>        }<a name="line.138"></a>
-<span class="sourceLineNo">139</span>        this.name = dummyString;<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>        this.problem = new LeastSquaresProblem();<a name="line.141"></a>
-<span class="sourceLineNo">142</span>    }<a name="line.142"></a>
-<span class="sourceLineNo">143</span><a name="line.143"></a>
-<span class="sourceLineNo">144</span>    class LeastSquaresProblem {<a name="line.144"></a>
-<span class="sourceLineNo">145</span>        public MultivariateVectorFunction getModelFunction() {<a name="line.145"></a>
-<span class="sourceLineNo">146</span>            return new MultivariateVectorFunction() {<a name="line.146"></a>
-<span class="sourceLineNo">147</span>                public double[] value(final double[] a) {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>                    final int n = getNumObservations();<a name="line.148"></a>
-<span class="sourceLineNo">149</span>                    final double[] yhat = new double[n];<a name="line.149"></a>
-<span class="sourceLineNo">150</span>                    for (int i = 0; i &lt; n; i++) {<a name="line.150"></a>
-<span class="sourceLineNo">151</span>                        yhat[i] = getModelValue(getX(i), a);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>                    }<a name="line.152"></a>
-<span class="sourceLineNo">153</span>                    return yhat;<a name="line.153"></a>
-<span class="sourceLineNo">154</span>                }<a name="line.154"></a>
-<span class="sourceLineNo">155</span>            };<a name="line.155"></a>
-<span class="sourceLineNo">156</span>        }<a name="line.156"></a>
-<span class="sourceLineNo">157</span><a name="line.157"></a>
-<span class="sourceLineNo">158</span>        public MultivariateMatrixFunction getModelFunctionJacobian() {<a name="line.158"></a>
-<span class="sourceLineNo">159</span>            return new MultivariateMatrixFunction() {<a name="line.159"></a>
-<span class="sourceLineNo">160</span>                public double[][] value(final double[] a)<a name="line.160"></a>
-<span class="sourceLineNo">161</span>                    throws IllegalArgumentException {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>                    final int n = getNumObservations();<a name="line.162"></a>
-<span class="sourceLineNo">163</span>                    final double[][] j = new double[n][];<a name="line.163"></a>
-<span class="sourceLineNo">164</span>                    for (int i = 0; i &lt; n; i++) {<a name="line.164"></a>
-<span class="sourceLineNo">165</span>                        j[i] = getModelDerivatives(getX(i), a);<a name="line.165"></a>
-<span class="sourceLineNo">166</span>                    }<a name="line.166"></a>
-<span class="sourceLineNo">167</span>                    return j;<a name="line.167"></a>
-<span class="sourceLineNo">168</span>                }<a name="line.168"></a>
-<span class="sourceLineNo">169</span>            };<a name="line.169"></a>
-<span class="sourceLineNo">170</span>        }<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    }<a name="line.171"></a>
-<span class="sourceLineNo">172</span><a name="line.172"></a>
-<span class="sourceLineNo">173</span>    /**<a name="line.173"></a>
-<span class="sourceLineNo">174</span>     * Returns the name of this dataset.<a name="line.174"></a>
-<span class="sourceLineNo">175</span>     *<a name="line.175"></a>
-<span class="sourceLineNo">176</span>     * @return the name of the dataset<a name="line.176"></a>
-<span class="sourceLineNo">177</span>     */<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    public String getName() {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>        return name;<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    }<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>    /**<a name="line.182"></a>
-<span class="sourceLineNo">183</span>     * Returns the total number of observations (data points).<a name="line.183"></a>
-<span class="sourceLineNo">184</span>     *<a name="line.184"></a>
-<span class="sourceLineNo">185</span>     * @return the number of observations<a name="line.185"></a>
-<span class="sourceLineNo">186</span>     */<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    public int getNumObservations() {<a name="line.187"></a>
-<span class="sourceLineNo">188</span>        return numObservations;<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>     * Returns a copy of the data arrays. The data is laid out as follows &lt;li&gt;<a name="line.192"></a>
-<span class="sourceLineNo">193</span>     * {@code data[0][i] = x[i]},&lt;/li&gt; &lt;li&gt;{@code data[1][i] = y[i]},&lt;/li&gt;<a name="line.193"></a>
-<span class="sourceLineNo">194</span>     *<a name="line.194"></a>
-<span class="sourceLineNo">195</span>     * @return the array of data points.<a name="line.195"></a>
-<span class="sourceLineNo">196</span>     */<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    public double[][] getData() {<a name="line.197"></a>
-<span class="sourceLineNo">198</span>        return new double[][] {<a name="line.198"></a>
-<span class="sourceLineNo">199</span>            MathArrays.copyOf(x), MathArrays.copyOf(y)<a name="line.199"></a>
-<span class="sourceLineNo">200</span>        };<a name="line.200"></a>
-<span class="sourceLineNo">201</span>    }<a name="line.201"></a>
-<span class="sourceLineNo">202</span><a name="line.202"></a>
-<span class="sourceLineNo">203</span>    /**<a name="line.203"></a>
-<span class="sourceLineNo">204</span>     * Returns the x-value of the {@code i}-th data point.<a name="line.204"></a>
-<span class="sourceLineNo">205</span>     *<a name="line.205"></a>
-<span class="sourceLineNo">206</span>     * @param i the index of the data point<a name="line.206"></a>
-<span class="sourceLineNo">207</span>     * @return the x-value<a name="line.207"></a>
-<span class="sourceLineNo">208</span>     */<a name="line.208"></a>
-<span class="sourceLineNo">209</span>    public double getX(final int i) {<a name="line.209"></a>
-<span class="sourceLineNo">210</span>        return x[i];<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    }<a name="line.211"></a>
-<span class="sourceLineNo">212</span><a name="line.212"></a>
-<span class="sourceLineNo">213</span>    /**<a name="line.213"></a>
-<span class="sourceLineNo">214</span>     * Returns the y-value of the {@code i}-th data point.<a name="line.214"></a>
-<span class="sourceLineNo">215</span>     *<a name="line.215"></a>
-<span class="sourceLineNo">216</span>     * @param i the index of the data point<a name="line.216"></a>
-<span class="sourceLineNo">217</span>     * @return the y-value<a name="line.217"></a>
-<span class="sourceLineNo">218</span>     */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    public double getY(final int i) {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>        return y[i];<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    }<a name="line.221"></a>
-<span class="sourceLineNo">222</span><a name="line.222"></a>
-<span class="sourceLineNo">223</span>    /**<a name="line.223"></a>
-<span class="sourceLineNo">224</span>     * Returns the total number of parameters.<a name="line.224"></a>
-<span class="sourceLineNo">225</span>     *<a name="line.225"></a>
-<span class="sourceLineNo">226</span>     * @return the number of parameters<a name="line.226"></a>
-<span class="sourceLineNo">227</span>     */<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    public int getNumParameters() {<a name="line.228"></a>
-<span class="sourceLineNo">229</span>        return numParameters;<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    }<a name="line.230"></a>
-<span class="sourceLineNo">231</span><a name="line.231"></a>
-<span class="sourceLineNo">232</span>    /**<a name="line.232"></a>
-<span class="sourceLineNo">233</span>     * Returns the certified values of the paramters.<a name="line.233"></a>
-<span class="sourceLineNo">234</span>     *<a name="line.234"></a>
-<span class="sourceLineNo">235</span>     * @return the values of the parameters<a name="line.235"></a>
-<span class="sourceLineNo">236</span>     */<a name="line.236"></a>
-<span class="sourceLineNo">237</span>    public double[] getParameters() {<a name="line.237"></a>
-<span class="sourceLineNo">238</span>        return MathArrays.copyOf(a);<a name="line.238"></a>
-<span class="sourceLineNo">239</span>    }<a name="line.239"></a>
-<span class="sourceLineNo">240</span><a name="line.240"></a>
-<span class="sourceLineNo">241</span>    /**<a name="line.241"></a>
-<span class="sourceLineNo">242</span>     * Returns the certified value of the {@code i}-th parameter.<a name="line.242"></a>
-<span class="sourceLineNo">243</span>     *<a name="line.243"></a>
-<span class="sourceLineNo">244</span>     * @param i the index of the parameter<a name="line.244"></a>
-<span class="sourceLineNo">245</span>     * @return the value of the parameter<a name="line.245"></a>
-<span class="sourceLineNo">246</span>     */<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    public double getParameter(final int i) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span>        return a[i];<a name="line.248"></a>
-<span class="sourceLineNo">249</span>    }<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span>    /**<a name="line.251"></a>
-<span class="sourceLineNo">252</span>     * Reurns the certified values of the standard deviations of the parameters.<a name="line.252"></a>
-<span class="sourceLineNo">253</span>     *<a name="line.253"></a>
-<span class="sourceLineNo">254</span>     * @return the standard deviations of the parameters<a name="line.254"></a>
-<span class="sourceLineNo">255</span>     */<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    public double[] getParametersStandardDeviations() {<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        return MathArrays.copyOf(sigA);<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    }<a name="line.258"></a>
-<span class="sourceLineNo">259</span><a name="line.259"></a>
-<span class="sourceLineNo">260</span>    /**<a name="line.260"></a>
-<span class="sourceLineNo">261</span>     * Returns the certified value of the standard deviation of the {@code i}-th<a name="line.261"></a>
-<span class="sourceLineNo">262</span>     * parameter.<a name="line.262"></a>
-<span class="sourceLineNo">263</span>     *<a name="line.263"></a>
-<span class="sourceLineNo">264</span>     * @param i the index of the parameter<a name="line.264"></a>
-<span class="sourceLineNo">265</span>     * @return the standard deviation of the parameter<a name="line.265"></a>
-<span class="sourceLineNo">266</span>     */<a name="line.266"></a>
-<span class="sourceLineNo">267</span>    public double getParameterStandardDeviation(final int i) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span>        return sigA[i];<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    }<a name="line.269"></a>
-<span class="sourceLineNo">270</span><a name="line.270"></a>
-<span class="sourceLineNo">271</span>    /**<a name="line.271"></a>
-<span class="sourceLineNo">272</span>     * Returns the certified value of the residual sum of squares.<a name="line.272"></a>
-<span class="sourceLineNo">273</span>     *<a name="line.273"></a>
-<span class="sourceLineNo">274</span>     * @return the residual sum of squares<a name="line.274"></a>
-<span class="sourceLineNo">275</span>     */<a name="line.275"></a>
-<span class="sourceLineNo">276</span>    public double getResidualSumOfSquares() {<a name="line.276"></a>
-<span class="sourceLineNo">277</span>        return residualSumOfSquares;<a name="line.277"></a>
-<span class="sourceLineNo">278</span>    }<a name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span>    /**<a name="line.280"></a>
-<span class="sourceLineNo">281</span>     * Returns the total number of starting points (initial guesses for the<a name="line.281"></a>
-<span class="sourceLineNo">282</span>     * optimization process).<a name="line.282"></a>
-<span class="sourceLineNo">283</span>     *<a name="line.283"></a>
-<span class="sourceLineNo">284</span>     * @return the number of starting points<a name="line.284"></a>
-<span class="sourceLineNo">285</span>     */<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    public int getNumStartingPoints() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span>        return numStartingPoints;<a name="line.287"></a>
-<span class="sourceLineNo">288</span>    }<a name="line.288"></a>
-<span class="sourceLineNo">289</span><a name="line.289"></a>
-<span class="sourceLineNo">290</span>    /**<a name="line.290"></a>
-<span class="sourceLineNo">291</span>     * Returns the {@code i}-th set of initial values of the parameters.<a name="line.291"></a>
-<span class="sourceLineNo">292</span>     *<a name="line.292"></a>
-<span class="sourceLineNo">293</span>     * @param i the index of the starting point<a name="line.293"></a>
-<span class="sourceLineNo">294</span>     * @return the starting point<a name="line.294"></a>
-<span class="sourceLineNo">295</span>     */<a name="line.295"></a>
-<span class="sourceLineNo">296</span>    public double[] getStartingPoint(final int i) {<a name="line.296"></a>
-<span class="sourceLineNo">297</span>        return MathArrays.copyOf(startingValues[i]);<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    }<a name="line.298"></a>
-<span class="sourceLineNo">299</span><a name="line.299"></a>
-<span class="sourceLineNo">300</span>    /**<a name="line.300"></a>
-<span class="sourceLineNo">301</span>     * Returns the least-squares problem corresponding to fitting the model to<a name="line.301"></a>
-<span class="sourceLineNo">302</span>     * the specified data.<a name="line.302"></a>
-<span class="sourceLineNo">303</span>     *<a name="line.303"></a>
-<span class="sourceLineNo">304</span>     * @return the least-squares problem<a name="line.304"></a>
-<span class="sourceLineNo">305</span>     */<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    public LeastSquaresProblem getLeastSquaresProblem() {<a name="line.306"></a>
-<span class="sourceLineNo">307</span>        return problem;<a name="line.307"></a>
-<span class="sourceLineNo">308</span>    }<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>    /**<a name="line.310"></a>
-<span class="sourceLineNo">311</span>     * Returns the value of the model for the specified values of the predictor<a name="line.311"></a>
-<span class="sourceLineNo">312</span>     * variable and the parameters.<a name="line.312"></a>
-<span class="sourceLineNo">313</span>     *<a name="line.313"></a>
-<span class="sourceLineNo">314</span>     * @param x the predictor variable<a name="line.314"></a>
-<span class="sourceLineNo">315</span>     * @param a the parameters<a name="line.315"></a>
-<span class="sourceLineNo">316</span>     * @return the value of the model<a name="line.316"></a>
-<span class="sourceLineNo">317</span>     */<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    public abstract double getModelValue(final double x, final double[] a);<a name="line.318"></a>
-<span class="sourceLineNo">319</span><a name="line.319"></a>
-<span class="sourceLineNo">320</span>    /**<a name="line.320"></a>
-<span class="sourceLineNo">321</span>     * Returns the values of the partial derivatives of the model with respect<a name="line.321"></a>
-<span class="sourceLineNo">322</span>     * to the parameters.<a name="line.322"></a>
-<span class="sourceLineNo">323</span>     *<a name="line.323"></a>
-<span class="sourceLineNo">324</span>     * @param x the predictor variable<a name="line.324"></a>
-<span class="sourceLineNo">325</span>     * @param a the parameters<a name="line.325"></a>
-<span class="sourceLineNo">326</span>     * @return the partial derivatives<a name="line.326"></a>
-<span class="sourceLineNo">327</span>     */<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    public abstract double[] getModelDerivatives(final double x,<a name="line.328"></a>
-<span class="sourceLineNo">329</span>                                                 final double[] a);<a name="line.329"></a>
-<span class="sourceLineNo">330</span><a name="line.330"></a>
-<span class="sourceLineNo">331</span>    /**<a name="line.331"></a>
-<span class="sourceLineNo">332</span>     * &lt;p&gt;<a name="line.332"></a>
-<span class="sourceLineNo">333</span>     * Parses the specified text lines, and extracts the indices of the first<a name="line.333"></a>
-<span class="sourceLineNo">334</span>     * and last lines of the data defined by the specified {@code key}. This key<a name="line.334"></a>
-<span class="sourceLineNo">335</span>     * must be one of<a name="line.335"></a>
-<span class="sourceLineNo">336</span>     * &lt;/p&gt;<a name="line.336"></a>
-<span class="sourceLineNo">337</span>     * &lt;ul&gt;<a name="line.337"></a>
-<span class="sourceLineNo">338</span>     * &lt;li&gt;{@code "Starting Values"},&lt;/li&gt;<a name="line.338"></a>
-<span class="sourceLineNo">339</span>     * &lt;li&gt;{@code "Certified Values"},&lt;/li&gt;<a name="line.339"></a>
-<span class="sourceLineNo">340</span>     * &lt;li&gt;{@code "Data"}.&lt;/li&gt;<a name="line.340"></a>
-<span class="sourceLineNo">341</span>     * &lt;/ul&gt;<a name="line.341"></a>
-<span class="sourceLineNo">342</span>     * &lt;p&gt;<a name="line.342"></a>
-<span class="sourceLineNo">343</span>     * In the NIST data files, the line indices are separated by the keywords<a name="line.343"></a>
-<span class="sourceLineNo">344</span>     * {@code "lines"} and {@code "to"}.<a name="line.344"></a>
-<span class="sourceLineNo">345</span>     * &lt;/p&gt;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>     *<a name="line.346"></a>
-<span class="sourceLineNo">347</span>     * @param lines the line of text to be parsed<a name="line.347"></a>
-<span class="sourceLineNo">348</span>     * @return an array of two {@code int}s. First value is the index of the<a name="line.348"></a>
-<span class="sourceLineNo">349</span>     *         first line, second value is the index of the last line.<a name="line.349"></a>
-<span class="sourceLineNo">350</span>     *         {@code null} if the line could not be parsed.<a name="line.350"></a>
-<span class="sourceLineNo">351</span>     */<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    private static int[] findLineNumbers(final String key,<a name="line.352"></a>
-<span class="sourceLineNo">353</span>                                         final Iterable&lt;String&gt; lines) {<a name="line.353"></a>
-<span class="sourceLineNo">354</span>        for (String text : lines) {<a name="line.354"></a>
-<span class="sourceLineNo">355</span>            boolean flag = text.contains(key) &amp;&amp; text.contains("lines") &amp;&amp;<a name="line.355"></a>
-<span class="sourceLineNo">356</span>                           text.contains("to") &amp;&amp; text.contains(")");<a name="line.356"></a>
-<span class="sourceLineNo">357</span>            if (flag) {<a name="line.357"></a>
-<span class="sourceLineNo">358</span>                final int[] numbers = new int[2];<a name="line.358"></a>
-<span class="sourceLineNo">359</span>                final String from = text.substring(text.indexOf("lines") + 5,<a name="line.359"></a>
-<span class="sourceLineNo">360</span>                                                   text.indexOf("to"));<a name="line.360"></a>
-<span class="sourceLineNo">361</span>                numbers[0] = Integer.parseInt(from.trim());<a name="line.361"></a>
-<span class="sourceLineNo">362</span>                final String to = text.substring(text.indexOf("to") + 2,<a name="line.362"></a>
-<span class="sourceLineNo">363</span>                                                 text.indexOf(")"));<a name="line.363"></a>
-<span class="sourceLineNo">364</span>                numbers[1] = Integer.parseInt(to.trim());<a name="line.364"></a>
-<span class="sourceLineNo">365</span>                return numbers;<a name="line.365"></a>
-<span class="sourceLineNo">366</span>            }<a name="line.366"></a>
-<span class="sourceLineNo">367</span>        }<a name="line.367"></a>
-<span class="sourceLineNo">368</span>        return null;<a name="line.368"></a>
-<span class="sourceLineNo">369</span>    }<a name="line.369"></a>
-<span class="sourceLineNo">370</span>}<a name="line.370"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/commons-complex/blob/b3576eeb/site-content/.svn/pristine/01/01a1b81a27e3e75ac3704cf69c156c20f29374d6.svn-base
----------------------------------------------------------------------
diff --git a/site-content/.svn/pristine/01/01a1b81a27e3e75ac3704cf69c156c20f29374d6.svn-base b/site-content/.svn/pristine/01/01a1b81a27e3e75ac3704cf69c156c20f29374d6.svn-base
deleted file mode 100644
index 37d3d5a..0000000
--- a/site-content/.svn/pristine/01/01a1b81a27e3e75ac3704cf69c156c20f29374d6.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>GaussNewtonOptimizer</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> &gt; <a href="index.html" class="el_package">org.apache.commons.math3.optimization.general</a> &gt; <span class="el_class">GaussNewtonOptimizer</span></div><h1>GaussNewtonOptimizer</h1><table class="coverage" cellspacing="0" id="cov
 eragetable"><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">24 of 256</td><td class="ctr2">91%</td><td class="bar">3 of 22</td><td class="ctr2">86%</td><td class="ctr1">5</td><td class
 ="ctr2">16</td><td class="ctr1">6</td><td class="ctr2">59</td><td class="ctr1">2</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a0"><a href="GaussNewtonOptimizer.java.html#L105" class="el_method">doOptimize()</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="6" height="10" title="13" alt="13"/><img src="../.resources/greenbar.gif" width="113" height="10" title="220" alt="220"/></td><td class="ctr2" id="c2">94%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="16" height="10" title="3" alt="3"/><img src="../.resources/greenbar.gif" width="103" height="10" title="19" alt="19"/></td><td class="ctr2" id="e0">86%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g0">12</td><td class="ctr1" id="h0">2</td><td class="ctr2" id="i0">50</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="GaussNewtonOptimizer.java.html#L87" class="el_method">GaussNewtonOptimizer(boolean)</a></td><td class
 ="bar" id="b1"><img src="../.resources/redbar.gif" width="3" height="10" title="7" alt="7"/></td><td class="ctr2" id="c3">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a1"><a href="GaussNewtonOptimizer.java.html#L62" class="el_method">GaussNewtonOptimizer()</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="2" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="GaussNewtonOptimizer.java.html#L98" class="el_method">GaussNewtonOptimizer(boolean, ConvergenceCh
 ecker)</a></td><td class="bar" id="b3"><img src="../.resources/greenbar.gif" width="3" height="10" title="7" alt="7"/></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="i1">3</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a4"><a href="GaussNewtonOptimizer.java.html#L72" class="el_method">GaussNewtonOptimizer(ConvergenceChecker)</a></td><td class="bar" id="b4"><img src="../.resources/greenbar.gif" width="2" height="10" title="5" alt="5"/></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/01/01a5b514be40045297beae48242576ba96a19dd8.svn-base
----------------------------------------------------------------------
diff --git a/site-content/.svn/pristine/01/01a5b514be40045297beae48242576ba96a19dd8.svn-base b/site-content/.svn/pristine/01/01a5b514be40045297beae48242576ba96a19dd8.svn-base
deleted file mode 100644
index abeac14..0000000
--- a/site-content/.svn/pristine/01/01a5b514be40045297beae48242576ba96a19dd8.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>Sigmoid.Parametric (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="Sigmoid.Parametric (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/Sigmoid.Parametric.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/Sigmoid.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/Signum.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/Sigmoid.Parametric.html" target="_top">Frames</a></li>
-<li><a href="Sigmoid.Parametric.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:&nbsp;</li>
-<li>Nested&nbsp;|&nbsp;</li>
-<li>Field&nbsp;|&nbsp;</li>
-<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
-<li><a href="#method_summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail:&nbsp;</li>
-<li>Field&nbsp;|&nbsp;</li>
-<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 Sigmoid.Parametric" class="title">Class Sigmoid.Parametric</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.Sigmoid.Parametric</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/ParametricUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">ParametricUnivariateFunction</a></dd>
-</dl>
-<dl>
-<dt>Enclosing class:</dt>
-<dd><a href="../../../../../../org/apache/commons/math3/analysis/function/Sigmoid.html" title="class in org.apache.commons.math3.analysis.function">Sigmoid</a></dd>
-</dl>
-<hr>
-<br>
-<pre>public static class <a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Sigmoid.html#line.89">Sigmoid.Parametric</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/ParametricUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">ParametricUnivariateFunction</a></pre>
-<div class="block">Parametric function where the input array contains the parameters of
- the <a href="../../../../../../org/apache/commons/math3/analysis/function/Sigmoid.html#Sigmoid(double,%20double)"><code>sigmoid function</code></a>, ordered
- as follows:
- <ul>
-  <li>Lower asymptote</li>
-  <li>Higher asymptote</li>
- </ul></div>
-</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">&nbsp;</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/Sigmoid.Parametric.html#Sigmoid.Parametric()">Sigmoid.Parametric</a></strong>()</code>&nbsp;</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">&nbsp;</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/analysis/function/Sigmoid.Parametric.html#gradient(double,%20double...)">gradient</a></strong>(double&nbsp;x,
-                double...&nbsp;param)</code>
-<div class="block">Computes the value of the gradient at <code>x</code>.</div>
-</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>double</code></td>
-<td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/math3/analysis/function/Sigmoid.Parametric.html#value(double,%20double...)">value</a></strong>(double&nbsp;x,
-          double...&nbsp;param)</code>
-<div class="block">Computes the value of the sigmoid at <code>x</code>.</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&nbsp;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="Sigmoid.Parametric()">
-<!--   -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>Sigmoid.Parametric</h4>
-<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Sigmoid.Parametric.html#line.89">Sigmoid.Parametric</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, double...)">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>value</h4>
-<pre>public&nbsp;double&nbsp;<a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Sigmoid.Parametric.html#line.100">value</a>(double&nbsp;x,
-           double...&nbsp;param)
-             throws <a href="../../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a>,
-                    <a href="../../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre>
-<div class="block">Computes the value of the sigmoid at <code>x</code>.</div>
-<dl>
-<dt><strong>Specified by:</strong></dt>
-<dd><code><a href="../../../../../../org/apache/commons/math3/analysis/ParametricUnivariateFunction.html#value(double,%20double...)">value</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/math3/analysis/ParametricUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">ParametricUnivariateFunction</a></code></dd>
-<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Value for which the function must be computed.</dd><dd><code>param</code> - Values of lower asymptote and higher asymptote.</dd>
-<dt><span class="strong">Returns:</span></dt><dd>the value of the function.</dd>
-<dt><span class="strong">Throws:</span></dt>
-<dd><code><a href="../../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>param</code> is <code>null</code>.</dd>
-<dd><code><a href="../../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if the size of <code>param</code> is
- not 2.</dd></dl>
-</li>
-</ul>
-<a name="gradient(double, double...)">
-<!--   -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>gradient</h4>
-<pre>public&nbsp;double[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/math3/analysis/function/Sigmoid.Parametric.html#line.120">gradient</a>(double&nbsp;x,
-                double...&nbsp;param)
-                  throws <a href="../../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a>,
-                         <a href="../../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></pre>
-<div class="block">Computes the value of the gradient at <code>x</code>.
- The components of the gradient vector are the partial
- derivatives of the function with respect to each of the
- <em>parameters</em> (lower asymptote and higher asymptote).</div>
-<dl>
-<dt><strong>Specified by:</strong></dt>
-<dd><code><a href="../../../../../../org/apache/commons/math3/analysis/ParametricUnivariateFunction.html#gradient(double,%20double...)">gradient</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/math3/analysis/ParametricUnivariateFunction.html" title="interface in org.apache.commons.math3.analysis">ParametricUnivariateFunction</a></code></dd>
-<dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Value at which the gradient must be computed.</dd><dd><code>param</code> - Values for lower asymptote and higher asymptote.</dd>
-<dt><span class="strong">Returns:</span></dt><dd>the gradient vector at <code>x</code>.</dd>
-<dt><span class="strong">Throws:</span></dt>
-<dd><code><a href="../../../../../../org/apache/commons/math3/exception/NullArgumentException.html" title="class in org.apache.commons.math3.exception">NullArgumentException</a></code> - if <code>param</code> is <code>null</code>.</dd>
-<dd><code><a href="../../../../../../org/apache/commons/math3/exception/DimensionMismatchException.html" title="class in org.apache.commons.math3.exception">DimensionMismatchException</a></code> - if the size of <code>param</code> is
- not 2.</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/Sigmoid.Parametric.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/Sigmoid.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/Signum.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/Sigmoid.Parametric.html" target="_top">Frames</a></li>
-<li><a href="Sigmoid.Parametric.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:&nbsp;</li>
-<li>Nested&nbsp;|&nbsp;</li>
-<li>Field&nbsp;|&nbsp;</li>
-<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
-<li><a href="#method_summary">Method</a></li>
-</ul>
-<ul class="subNavList">
-<li>Detail:&nbsp;</li>
-<li>Field&nbsp;|&nbsp;</li>
-<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2003&#x2013;2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
-</body>
-</html>


Mime
View raw message