public class WindowedLinearRegressionAggregator extends Object implements SynchronisedTimeSeriesCollectionAggregator<DoubleTimeSeries,DoubleSynchronisedTimeSeriesCollection,DoubleTimeSeries>
SynchronisedTimeSeriesCollection
which
model a set of timeseries which are synchronised.
When intitalised, the Y time series must be explicitly specified. By default
theConstructor and Description |
---|
WindowedLinearRegressionAggregator(String ydataName)
Calculate the regression from the same time series inputed
|
WindowedLinearRegressionAggregator(String ydataName,
boolean autoregressive)
Calculate the regression from the same time series inputed
|
WindowedLinearRegressionAggregator(String ydataName,
boolean autoregressive,
IndependentPair<Integer,Integer>... windowOffsets)
Perform regression s.t.
|
WindowedLinearRegressionAggregator(String ydataName,
int windowsize)
Perform regression s.t.
|
WindowedLinearRegressionAggregator(String ydataName,
int windowsize,
boolean autoregressive)
Perform regression s.t.
|
WindowedLinearRegressionAggregator(String ydataName,
int windowsize,
int offset)
Perform regression s.t.
|
WindowedLinearRegressionAggregator(String ydataName,
int windowsize,
int offset,
boolean autoregressive)
Perform regression s.t.
|
WindowedLinearRegressionAggregator(String ydataName,
int windowsize,
int offset,
boolean autoregressive,
DoubleSynchronisedTimeSeriesCollection other)
Perform regression s.t.
|
Modifier and Type | Method and Description |
---|---|
DoubleTimeSeries |
aggregate(DoubleSynchronisedTimeSeriesCollection series) |
LinearRegression |
getReg() |
LinearRegression |
getRegression() |
public WindowedLinearRegressionAggregator(String ydataName)
ydataName
- public WindowedLinearRegressionAggregator(String ydataName, boolean autoregressive)
ydataName
- autoregressive
- whether the ydata should be used in regressionpublic WindowedLinearRegressionAggregator(String ydataName, int windowsize)
ydataName
- windowsize
- public WindowedLinearRegressionAggregator(String ydataName, int windowsize, boolean autoregressive)
ydataName
- windowsize
- autoregressive
- whether the ydata should be used in regressionpublic WindowedLinearRegressionAggregator(String ydataName, int windowsize, int offset)
ydataName
- windowsize
- offset
- public WindowedLinearRegressionAggregator(String ydataName, int windowsize, int offset, boolean autoregressive)
ydataName
- windowsize
- offset
- autoregressive
- whether the ydata should be used in regressionpublic WindowedLinearRegressionAggregator(String ydataName, int windowsize, int offset, boolean autoregressive, DoubleSynchronisedTimeSeriesCollection other)
ydataName
- windowsize
- offset
- autoregressive
- whether the ydata should be used in regressionother
- @SafeVarargs public WindowedLinearRegressionAggregator(String ydataName, boolean autoregressive, IndependentPair<Integer,Integer>... windowOffsets)
ydataName
- autoregressive
- whether the ydata should be used in regressionwindowOffsets
- public LinearRegression getRegression()
WindowedLinearRegressionAggregator
's underlying
LinearRegression
modelpublic DoubleTimeSeries aggregate(DoubleSynchronisedTimeSeriesCollection series)
aggregate
in interface SynchronisedTimeSeriesCollectionAggregator<DoubleTimeSeries,DoubleSynchronisedTimeSeriesCollection,DoubleTimeSeries>
aggregate
in interface TimeSeriesCollectionAggregator<DoubleTimeSeries,DoubleSynchronisedTimeSeriesCollection,DoubleTimeSeries>
series
- aggregate this collection into the outputpublic LinearRegression getReg()