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

Class BasicTest

  • All Implemented Interfaces:
    junit.framework.Test


    public class BasicTest
    extends OpenForecastTestCase
    • Constructor Summary

      Constructors 
      Constructor and Description
      BasicTest(java.lang.String name) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void testDataPoint()
      Tests that two DataPoint objects initialized differently but with the same data are equal.
      void testForecast()
      Creates a simple data set where the dependent value is exactly the same as the independent value, then tests the chosen forecast model on five further values in the series.
      void testUnknownVariableInObservation()
      Tests that an IllegalArgumentException is thrown if an attempt is made to retrieve the value of an unknown independent variable.
      • 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

      • BasicTest

        public BasicTest(java.lang.String name)
    • Method Detail

      • testDataPoint

        public void testDataPoint()
        Tests that two DataPoint objects initialized differently but with the same data are equal.
      • testUnknownVariableInObservation

        public void testUnknownVariableInObservation()
        Tests that an IllegalArgumentException is thrown if an attempt is made to retrieve the value of an unknown independent variable.
      • testForecast

        public void testForecast()
        Creates a simple data set where the dependent value is exactly the same as the independent value, then tests the chosen forecast model on five further values in the series. A regression model should give accurate results for this series, whereas a moving average would always lag the value (so not be as appropriate).

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.