Repository: commons-math
Updated Branches:
  refs/heads/master 2df0a3be6 -> d749b2e76


Fixed errors in multiple regression code samples. JIRA: MATH-1316.  Thanks to 
Sanghack Lee.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/d749b2e7
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/d749b2e7
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/d749b2e7

Branch: refs/heads/master
Commit: d749b2e76f3c14d0f2df52706d12f1156320640f
Parents: 2df0a3b
Author: Phil Steitz <phil.ste...@gmail.com>
Authored: Mon Jan 11 06:55:02 2016 -0700
Committer: Phil Steitz <phil.ste...@gmail.com>
Committed: Mon Jan 11 06:55:02 2016 -0700

----------------------------------------------------------------------
 src/site/xdoc/userguide/stat.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/d749b2e7/src/site/xdoc/userguide/stat.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/userguide/stat.xml b/src/site/xdoc/userguide/stat.xml
index 6a6dd87..c112c8b 100644
--- a/src/site/xdoc/userguide/stat.xml
+++ b/src/site/xdoc/userguide/stat.xml
@@ -562,14 +562,14 @@ System.out.println(regression.getInterceptStdErr() );
           <source>
 OLSMultipleLinearRegression regression = new OLSMultipleLinearRegression();
 double[] y = new double[]{11.0, 12.0, 13.0, 14.0, 15.0, 16.0};
-double[] x = new double[6][];
+double[][] x = new double[6][];
 x[0] = new double[]{0, 0, 0, 0, 0};
 x[1] = new double[]{2.0, 0, 0, 0, 0};
 x[2] = new double[]{0, 3.0, 0, 0, 0};
 x[3] = new double[]{0, 0, 4.0, 0, 0};
 x[4] = new double[]{0, 0, 0, 5.0, 0};
 x[5] = new double[]{0, 0, 0, 0, 6.0};          
-regression.newSample(y, x);
+regression.newSampleData(y, x);
           </source>
           </dd>
           <dd>Get regression parameters and diagnostics:
@@ -593,7 +593,7 @@ double sigma = regression.estimateRegressionStandardError();
           <source>
 GLSMultipleLinearRegression regression = new GLSMultipleLinearRegression();
 double[] y = new double[]{11.0, 12.0, 13.0, 14.0, 15.0, 16.0};
-double[] x = new double[6][];
+double[][] x = new double[6][];
 x[0] = new double[]{0, 0, 0, 0, 0};
 x[1] = new double[]{2.0, 0, 0, 0, 0};
 x[2] = new double[]{0, 3.0, 0, 0, 0};

Reply via email to