ibspan.ecap.merchant.shopdecisions.forecasting
Class StationaryHorizonEstimator

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.forecasting.StationaryHorizonEstimator
All Implemented Interfaces:
HorizonEstimator

public class StationaryHorizonEstimator
extends java.lang.Object
implements HorizonEstimator


Nested Class Summary
 class StationaryHorizonEstimator.Observation
           
 
Constructor Summary
StationaryHorizonEstimator()
           
 
Method Summary
 int estimateHorizon(java.lang.String productId, java.util.Date forecastStart)
          Returns the forecast period length (in days) for the prediction of the given product starting at the specified date.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationaryHorizonEstimator

public StationaryHorizonEstimator()
Method Detail

estimateHorizon

public int estimateHorizon(java.lang.String productId,
                           java.util.Date forecastStart)
                    throws DataLoadException
Description copied from interface: HorizonEstimator
Returns the forecast period length (in days) for the prediction of the given product starting at the specified date.

Specified by:
estimateHorizon in interface HorizonEstimator
Parameters:
productId - the id of the product whose sales are forecasted
forecastStart - the date when the forecast starts
Returns:
the forecast period length (in days) to use for the prediction
Throws:
DataLoadException