public class HoltWinters extends weka.classifiers.AbstractClassifier implements PrimingDataLearner, weka.core.OptionHandler, Serializable
| Constructor and Description |
|---|
HoltWinters() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(weka.core.Instances data) |
double |
classifyInstance(weka.core.Instance inst) |
String |
excludeSeasonalCorrectionTipText()
Tip text for this property
|
String |
excludeTrendCorrection()
Tip text for this property
|
double |
forecast()
Generates a one-step ahead forecast.
|
boolean |
getExcludeSeasonalCorrection()
Get whether to exclude the seasonal correction
|
boolean |
getExcludeTrendCorrection()
Get whether to exclude the trend correction
|
int |
getMinRequiredTrainingPoints()
Return the minimum number of training/priming data points required before a
forecast can be made
|
String[] |
getOptions() |
double |
getSeasonalSmoothingFactor()
Get the seasonal smoothing factor
|
int |
getSeasonCycleLength()
Get the length of a "year", i.e.
|
double |
getTrendSmoothingFactor()
Get the trend smoothing factor
|
double |
getValueSmoothingFactor()
Get the value smoothing factor
|
String |
globalInfo()
Description of this forecaster.
|
Enumeration<weka.core.Option> |
listOptions() |
static void |
main(String[] args)
Main method for running this class
|
static void |
printUsage()
Print usage information
|
void |
reset()
Reset this forecaster ready to learn from a new set of priming data
|
String |
seasonalSmoothingFactorTipText()
Tip text for this property
|
String |
seasonCycleLengthTipText()
Tip text for this property
|
void |
setExcludeSeasonalCorrection(boolean s)
Set whether to exclude the seasonal correction
|
void |
setExcludeTrendCorrection(boolean t)
Set whether to exclude the trend correction
|
void |
setOptions(String[] options) |
void |
setSeasonalSmoothingFactor(double s)
Set the seasonal smoothing factor
|
void |
setSeasonCycleLength(int length)
Set the length of a "year", i.e.
|
void |
setTrendSmoothingFactor(double t)
Set the trend smoothing factor
|
void |
setValueSmoothingFactor(double s)
Set the value smoothing factor
|
String |
toString() |
String |
trendSmoothingFactorTipText()
Tip text for this property
|
void |
updateForecaster(double primingOrPredictedTargetValue)
Update the smoothed estimates using the supplied value
|
String |
valueSmoothingFactorTipText()
Tip text for this property
|
batchSizeTipText, debugTipText, distributionForInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getRevision, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlacespublic String globalInfo()
public void reset()
PrimingDataLearnerreset in interface PrimingDataLearnerpublic int getMinRequiredTrainingPoints()
getMinRequiredTrainingPoints in interface PrimingDataLearnerpublic void updateForecaster(double primingOrPredictedTargetValue)
updateForecaster in interface PrimingDataLearnerprimingOrPredictedTargetValue - the value to update withpublic double forecast()
throws Exception
Exception - if forecast can't be producedpublic void buildClassifier(weka.core.Instances data)
throws Exception
buildClassifier in interface weka.classifiers.ClassifierExceptionpublic double classifyInstance(weka.core.Instance inst)
throws Exception
classifyInstance in interface weka.classifiers.ClassifierclassifyInstance in class weka.classifiers.AbstractClassifierExceptionpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.classifiers.AbstractClassifierpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class weka.classifiers.AbstractClassifierExceptionpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.classifiers.AbstractClassifierpublic String seasonCycleLengthTipText()
public void setSeasonCycleLength(int length)
length - the number of seasons in a cyclepublic int getSeasonCycleLength()
length - the number of seasons in a cyclepublic String excludeSeasonalCorrectionTipText()
public void setExcludeSeasonalCorrection(boolean s)
s - true if the seasonal correction is to be excludedpublic boolean getExcludeSeasonalCorrection()
public String excludeTrendCorrection()
public void setExcludeTrendCorrection(boolean t)
s - true if the trend correction is to be excludedpublic boolean getExcludeTrendCorrection()
public String valueSmoothingFactorTipText()
public void setValueSmoothingFactor(double s)
s - the value smoothing factorpublic double getValueSmoothingFactor()
public String trendSmoothingFactorTipText()
public void setTrendSmoothingFactor(double t)
t - the trend smoothing factorpublic double getTrendSmoothingFactor()
t - the trend smoothing factorpublic String seasonalSmoothingFactorTipText()
public void setSeasonalSmoothingFactor(double s)
s - the seasonal smoothing factorpublic double getSeasonalSmoothingFactor()
public static void printUsage()
public static void main(String[] args)
args - command line argumentsCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.