org.apache.commons.math.stat.regression
Class OLSMultipleLinearRegressionTest
java.lang.Object
org.apache.commons.math.stat.regression.MultipleLinearRegressionAbstractTest
org.apache.commons.math.stat.regression.OLSMultipleLinearRegressionTest
public class OLSMultipleLinearRegressionTest
- extends MultipleLinearRegressionAbstractTest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OLSMultipleLinearRegressionTest
public OLSMultipleLinearRegressionTest()
setUp
public void setUp()
- Overrides:
setUp
in class MultipleLinearRegressionAbstractTest
createRegression
protected org.apache.commons.math.stat.regression.OLSMultipleLinearRegression createRegression()
- Specified by:
createRegression
in class MultipleLinearRegressionAbstractTest
getNumberOfRegressors
protected int getNumberOfRegressors()
- Specified by:
getNumberOfRegressors
in class MultipleLinearRegressionAbstractTest
getSampleSize
protected int getSampleSize()
- Specified by:
getSampleSize
in class MultipleLinearRegressionAbstractTest
cannotAddXSampleData
public void cannotAddXSampleData()
cannotAddNullYSampleData
public void cannotAddNullYSampleData()
cannotAddSampleDataWithSizeMismatch
public void cannotAddSampleDataWithSizeMismatch()
testPerfectFit
public void testPerfectFit()
testLongly
public void testLongly()
- Test Longley dataset against certified values provided by NIST.
Data Source: J. Longley (1967) "An Appraisal of Least Squares
Programs for the Electronic Computer from the Point of View of the User"
Journal of the American Statistical Association, vol. 62. September,
pp. 819-841.
Certified values (and data) are from NIST:
http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat
testSwissFertility
public void testSwissFertility()
- Test R Swiss fertility dataset against R.
Data Source: R datasets package
testHat
public void testHat()
throws Exception
- Test hat matrix computation
- Throws:
Exception
Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.