Documentation of 'net.sourceforge.openforecast.tests.MultipleLinearRegressionTest' Java class
MultipleLinearRegressionTest
net.sourceforge.openforecast.tests

Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void testForecaster() 
      void testMultipleLinearRegression()
      Tests the Multiple Linear Regression model directly.
      void testUserDefinedCoefficients()
      Tests the use of user-defined coefficients with the multiple variable linear regression model.
      void testUserDefinedCoefficientsWithNamedVars()
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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

Ads help maintain this website.