Package com.bayesserver.data.timeseries
Class WindowOptions
- java.lang.Object
-
- com.bayesserver.data.timeseries.WindowOptions
-
public final class WindowOptions extends Object
Options for creating windows over time series data.
-
-
Constructor Summary
Constructors Constructor Description WindowOptions(int[] times, int shift)
Initializes a new instance of theWindowOptions
class.WindowOptions(int history, int future)
Initializes a new instance of theWindowOptions
class, with a shift of 1.WindowOptions(int history, int future, int shift)
Initializes a new instance of theWindowOptions
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getShift()
Gets the number of records between successive windows.int[]
getTimes()
Gets the times to include in the window.void
setShift(int value)
Sets the number of records between successive windows.void
setTimes(int[] value)
Sets the times to include in the window.
-
-
-
Constructor Detail
-
WindowOptions
public WindowOptions(int history, int future)
Initializes a new instance of theWindowOptions
class, with a shift of 1.- Parameters:
history
- The number of historic records to include in the time window.future
- The number of future records to include in the time window.
-
WindowOptions
public WindowOptions(int history, int future, int shift)
Initializes a new instance of theWindowOptions
class.- Parameters:
history
- The number of historic records to include in the time window.future
- The number of future records to include in the time window.shift
- The number of records between successive windows.
-
WindowOptions
public WindowOptions(int[] times, int shift)
Initializes a new instance of theWindowOptions
class.- Parameters:
times
- The times to include in the window. E.g. -5, -3, 0, 3, 10. Include zero if the current time should be included.shift
- The number of records between successive windows.
-
-
Method Detail
-
getTimes
public int[] getTimes()
Gets the times to include in the window. E.g. -5, -3, 0, 3, 10. Include zero if the current time should be included.
-
setTimes
public void setTimes(int[] value)
Sets the times to include in the window. E.g. -5, -3, 0, 3, 10. Include zero if the current time should be included.
-
getShift
public int getShift()
Gets the number of records between successive windows. Defaults to 1, meaning each window is shifted by 1 record.
-
setShift
public void setShift(int value)
Sets the number of records between successive windows. Defaults to 1, meaning each window is shifted by 1 record.
-
-