Package gov.nih.mipav.model.algorithms
Class curfit
java.lang.Object
gov.nih.mipav.model.algorithms.curfit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[]private double[]private int[]private intCopyright (c) 2001-2002 Enthought, Inc. 2003-2022, SciPy Developers.private int[]private intprivate intprivate intprivate int[]private intprivate doubleprivate double[]private double[]private double[][][]private double[]private doubleprivate doubleprivate double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck_1()private doubleerr_est(int k, int d, int N, double s) private double[]f1(double[] x, int d) voidfpback(double[][] a, double[] z, int n, int k, double[] c, int nest) voidfpbspl(double[] t, int n, int k, double x, int l, double[] h) voidfpchec(double[] x, int m, double[] t, int n, int k, int[] ier) voidfpcurf(int iopt, double[] x, double[] y, double[] w, int m, double xb, double xe, int k, double s, int nest, double tol, int maxit, int k1, int k2, int[] n, double[] t, double[] c, double[] fp, double[] fpint, double[] z, double[][] a, double[][] b, double[][] g, double[][] q, int[] nrdata, int[] ier) voidfpdisc(double[] t, int n, int k2, double[][] b, int nest) voidfpgivs(double piv, double[] ww, double[] cos, double[] sin) voidfpknot(double[] x, int m, double[] t, int[] n, double[] fpint, int[] nrdata, int[] nrint, int nest, int istart) doublefprati(double[] p1, double[] f1, double p2, double f2, double[] p3, double[] f3) voidfprota(double cos, double sin, double[] a, double[] b) private doublenorm2(double[] x) voidrun()
-
Field Details
-
iopt
private int ioptCopyright (c) 2001-2002 Enthought, Inc. 2003-2022, SciPy Developers. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -
m
private int m -
x
private double[] x -
y
private double[] y -
w
private double[] w -
xb
private double xb -
xe
private double xe -
k
private int k -
s
private double s -
nest
private int nest -
n
private int[] n -
t
private double[] t -
c
private double[] c -
fp
private double[] fp -
lwrk
private int lwrk -
iwrk
private int[] iwrk -
ier
private int[] ier -
wrk
private double[][][] wrk
-
-
Constructor Details
-
curfit
public curfit() -
curfit
public curfit(int iopt, int m, double[] x, double[] y, double[] w, double xb, double xe, int k, double s, int nest, int[] n, double[] t, double[] c, double[] fp, int lwrk, int[] iwrk, int[] ier)
-
-
Method Details
-
run
public void run() -
fpchec
public void fpchec(double[] x, int m, double[] t, int n, int k, int[] ier) -
fpcurf
public void fpcurf(int iopt, double[] x, double[] y, double[] w, int m, double xb, double xe, int k, double s, int nest, double tol, int maxit, int k1, int k2, int[] n, double[] t, double[] c, double[] fp, double[] fpint, double[] z, double[][] a, double[][] b, double[][] g, double[][] q, int[] nrdata, int[] ier) -
fpbspl
public void fpbspl(double[] t, int n, int k, double x, int l, double[] h) -
fpgivs
public void fpgivs(double piv, double[] ww, double[] cos, double[] sin) -
fprota
public void fprota(double cos, double sin, double[] a, double[] b) -
fpback
public void fpback(double[][] a, double[] z, int n, int k, double[] c, int nest) -
fpknot
public void fpknot(double[] x, int m, double[] t, int[] n, double[] fpint, int[] nrdata, int[] nrint, int nest, int istart) -
fpdisc
public void fpdisc(double[] t, int n, int k2, double[][] b, int nest) -
fprati
public double fprati(double[] p1, double[] f1, double p2, double f2, double[] p3, double[] f3) -
check_1
public void check_1() -
f1
private double[] f1(double[] x, int d) -
err_est
private double err_est(int k, int d, int N, double s) -
norm2
private double norm2(double[] x)
-