public final class WindowOptions extends Object
Constructor and Description |
---|
WindowOptions(int[] times,
int shift)
Initializes a new instance of the
WindowOptions class. |
WindowOptions(int history,
int future)
Initializes a new instance of the
WindowOptions class, with a shift of 1. |
WindowOptions(int history,
int future,
int shift)
Initializes a new instance of the
WindowOptions class. |
Modifier and Type | Method and 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.
|
public WindowOptions(int history, int future)
WindowOptions
class, with a shift of 1.history
- The number of historic records to include in the time window.future
- The number of future records to include in the time window.public WindowOptions(int history, int future, int shift)
WindowOptions
class.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.public WindowOptions(int[] times, int shift)
WindowOptions
class.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.public int[] getTimes()
public void setTimes(int[] value)
public int getShift()
public void setShift(int value)
Copyright © 2023. All rights reserved.