net.sourceforge.openforecast.tests
Class MultipleLinearRegressionTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- net.sourceforge.openforecast.tests.OpenForecastTestCase
-
- net.sourceforge.openforecast.tests.MultipleLinearRegressionTest
-
- All Implemented Interfaces:
- junit.framework.Test
public class MultipleLinearRegressionTest extends OpenForecastTestCase
Tests the Mutiple Variable Linear Regression model. This contains two test cases - one to invoke and test the MultipleLinearRegressionModel directly; the second to invoke the Forecaster and ensure that it uses the MultipleLinearRegressionModel, and again gives the expected forecasts.
-
-
Constructor Summary
Constructors Constructor and Description MultipleLinearRegressionTest(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidtestForecaster()voidtestMultipleLinearRegression()Tests the Multiple Linear Regression model directly.voidtestUserDefinedCoefficients()Tests the use of user-defined coefficients with the multiple variable linear regression model.voidtestUserDefinedCoefficientsWithNamedVars()Tests the use of user-defined coefficients with the multiple variable linear regression model.-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
-
-
-
Constructor Detail
-
MultipleLinearRegressionTest
public MultipleLinearRegressionTest(java.lang.String name)
-
-
Method Detail
-
testMultipleLinearRegression
public void testMultipleLinearRegression()
Tests the Multiple Linear Regression model directly. Uses the data set initialized by setUp, where x3 is an independent variable that does not affect the value of the dependent variable. In other words, x3 should end up with a zero coefficient.
-
testForecaster
public void testForecaster()
-
testUserDefinedCoefficientsWithNamedVars
public void testUserDefinedCoefficientsWithNamedVars()
Tests the use of user-defined coefficients with the multiple variable linear regression model.
-
testUserDefinedCoefficients
public void testUserDefinedCoefficients()
Tests the use of user-defined coefficients with the multiple variable linear regression model.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG