net.sourceforge.openforecast.tests
Class DoubleExponentialSmoothingTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- net.sourceforge.openforecast.tests.OpenForecastTestCase
-
- net.sourceforge.openforecast.tests.DoubleExponentialSmoothingTest
-
- All Implemented Interfaces:
- junit.framework.Test
public class DoubleExponentialSmoothingTest extends OpenForecastTestCase
Tests the implementation of the Double Exponential Smoothing forecasting model.- Since:
- 0.4
-
-
Constructor Summary
Constructors Constructor and Description DoubleExponentialSmoothingTest(java.lang.String name)Constructor required by the JUnit framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidtestConstantDoubleExponentialSmoothing()A simple exponential smoothing test where the observed data is constant.voidtestDoubleExponentialSmoothing()A somewhat more realistic test where the results are known (and were calculated independently of the 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
-
DoubleExponentialSmoothingTest
public DoubleExponentialSmoothingTest(java.lang.String name)
Constructor required by the JUnit framework.
-
-
Method Detail
-
testConstantDoubleExponentialSmoothing
public void testConstantDoubleExponentialSmoothing()
A simple exponential smoothing test where the observed data is constant. This should result in the same constant forecast for any value of the smoothing constant.
-
testDoubleExponentialSmoothing
public void testDoubleExponentialSmoothing()
A somewhat more realistic test where the results are known (and were calculated independently of the model). Validates that the DoubleExponentialSmoothingModel returns the expected set of results for the given inputs.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG