Constructs a grouping that represents a moving window of fixed length.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Grouping<long> Window(
int length,
int size,
int offset = -1,
bool includePartialWindows = false,
int minCount = 0
)
Public Shared Function Window (
length As Integer,
size As Integer,
Optional offset As Integer = -1,
Optional includePartialWindows As Boolean = false,
Optional minCount As Integer = 0
) As Grouping(Of Long)
public:
static Grouping<long long>^ Window(
int length,
int size,
int offset = -1,
bool includePartialWindows = false,
int minCount = 0
)
static member Window :
length : int *
size : int *
?offset : int *
?includePartialWindows : bool *
?minCount : int
(* Defaults:
let _offset = defaultArg offset -1
let _includePartialWindows = defaultArg includePartialWindows false
let _minCount = defaultArg minCount 0
*)
-> Grouping<int64>
Parameters
- length
- Type: SystemInt32
The total length of the data to group on. - size
- Type: SystemInt32
The size of the window. Must be greater than zero. - offset (Optional)
- Type: SystemInt32
(Optional.) The offset from the start of the window
of the key that is used to represent the group in the grouping's index.
The default is -1, which indicates the last item in the interval.
- includePartialWindows (Optional)
- Type: SystemBoolean
Indicates whether windows at the boundaries
that are smaller than size should be evaluated. - minCount (Optional)
- Type: SystemInt32
(Optional.) The minimum number of observations required for
aggregations over a window to have a value. The default is 0.
Return Value
Type:
GroupingInt64A grouping object that represents the moving window.
Reference