com.yahoo.egads.control
Class ModelAdapter
- java.lang.Object
-
- com.yahoo.egads.control.ModelAdapter
-
public class ModelAdapter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description ModelAdapter(java.lang.String theMetric, long period)ModelAdapter(TimeSeries theMetric, long period)ModelAdapter(TimeSeries theMetric, long period, long firstTimeStamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddModel(TimeSeriesModel model)java.util.ArrayList<TimeSeries.DataSequence>forecast(long from, long to)java.lang.String[]getModelNames()voidreset()voidsetMetric(java.lang.String theMetric, long period)voidsetMetric(TimeSeries theMetric, long period)voidsetMetric(TimeSeries theMetric, long period, long firstTimeStamp)voidtrain()voidupdate(TimeSeries.DataSequence newData)
-
-
-
Constructor Detail
-
ModelAdapter
public ModelAdapter(TimeSeries theMetric, long period, long firstTimeStamp) throws java.lang.Exception
- Throws:
java.lang.Exception
-
ModelAdapter
public ModelAdapter(TimeSeries theMetric, long period) throws java.lang.Exception
- Throws:
java.lang.Exception
-
ModelAdapter
public ModelAdapter(java.lang.String theMetric, long period) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
setMetric
public void setMetric(TimeSeries theMetric, long period)
-
setMetric
public void setMetric(TimeSeries theMetric, long period, long firstTimeStamp)
-
setMetric
public void setMetric(java.lang.String theMetric, long period)
-
addModel
public void addModel(TimeSeriesModel model)
-
getModelNames
public java.lang.String[] getModelNames()
-
reset
public void reset()
-
train
public void train() throws java.lang.Exception- Throws:
java.lang.Exception
-
update
public void update(TimeSeries.DataSequence newData) throws java.lang.Exception
- Throws:
java.lang.Exception
-
forecast
public java.util.ArrayList<TimeSeries.DataSequence> forecast(long from, long to) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
DataMelt 3.0 © DataMelt by jWork.ORG