/* RegressionExampleFour Example of the use of the class Regression demonstrating the use of the non-linear regression method, Regression.simplexPlot in fitting data to the functions, y0 = (a+x)^2 + (b+x)^2 y1 = (a+x)^1.2 + (b+x)^1.2 with a and b unknown Michael Thomas Flanagan http://www.ee.ucl.ac.uk/~mflanaga/java/Regression.html May 2008 Copyright (c) 2008 - 2014 * PERMISSION TO COPY: * Permission to use, copy and modify this software and its documentation for * NON-COMMERCIAL purposes is granted, without fee, provided that an acknowledgement * to the author, Dr Michael Thomas Flanagan at www.ee.ucl.ac.uk/~mflanaga, * appears in all copies and associated documentation or publications. * * Public listing of the source codes on the internet is not permitted. * * Redistribution of the source codes or of the flanagan.jar file is not permitted. * * Redistribution in binary form of all or parts of these classes is not permitted. * * Dr Michael Thomas Flanagan makes no representations about the suitability * or fitness of the software for any or for a particular purpose. * Dr Michael Thomas Flanagan shall not be liable for any damages suffered * as a result of using, modifying or distributing this software or its derivatives. * ***************************************************************************************/ import flanagan.analysis.Regression; import flanagan.analysis.RegressionFunction2; import flanagan.analysis.Stat; public class RegressionExampleFour{ public static void main(String[] args){ int nData = 10; double[] xData = new double[nData]; double[][] yData = new double[2][nData]; double aa = 2.0; double bb = 5.0; // Create example data arrays for(int i=0; i