net.sourceforge.openforecast.tests
Class TripleExponentialSmoothingTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- net.sourceforge.openforecast.tests.OpenForecastTestCase
-
- net.sourceforge.openforecast.tests.TripleExponentialSmoothingTest
-
- All Implemented Interfaces:
- junit.framework.Test
public class TripleExponentialSmoothingTest extends OpenForecastTestCase
Tests the implementation of the Triple Exponential Smoothing forecasting model.- Since:
- 0.4
-
-
Constructor Summary
Constructors Constructor and Description TripleExponentialSmoothingTest(java.lang.String name)Constructor required by the JUnit framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidtestAirConditioning2YearExample()An example taken from Wayne Winston's book.voidtestAirConditioning3YearExample()An example taken from Wayne Winston's book.voidtestConstantTripleExponentialSmoothing()A simple test of triple exponential smoothing where the observed data is constant.-
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
-
TripleExponentialSmoothingTest
public TripleExponentialSmoothingTest(java.lang.String name)
Constructor required by the JUnit framework.
-
-
Method Detail
-
testConstantTripleExponentialSmoothing
public void testConstantTripleExponentialSmoothing()
A simple test of triple exponential smoothing where the observed data is constant. This should result in the same constant forecast for any value of the smoothing constants.
-
testAirConditioning2YearExample
public void testAirConditioning2YearExample()
An example taken from Wayne Winston's book. Sales of air conditioners. This example uses only the first two years of data, then tests the extrapolation out to a third year.
-
testAirConditioning3YearExample
public void testAirConditioning3YearExample()
An example taken from Wayne Winston's book. Sales of air conditioners. This example uses three years of data, then tests the "forecasts" - using triple exponential smoothing - for the third year. It therefore tests the updating of the triple exponential smoothing terms as additional data becomes available.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG