Constructs a grouping that represents a moving window whose keys
are within the specified distance of each other.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Grouping<DateTime> RangeWindow(
Index<DateTime> index,
TimeSpan distance,
Direction direction = Direction.Forward
)
Public Shared Function RangeWindow (
index As Index(Of DateTime),
distance As TimeSpan,
Optional direction As Direction = Direction.Forward
) As Grouping(Of DateTime)
public:
static Grouping<DateTime>^ RangeWindow(
Index<DateTime>^ index,
TimeSpan distance,
Direction direction = Direction::Forward
)
static member RangeWindow :
index : Index<DateTime> *
distance : TimeSpan *
?direction : Direction
(* Defaults:
let _direction = defaultArg direction Direction.Forward
*)
-> Grouping<DateTime>
Parameters
- index
- Type: Extreme.DataAnalysisIndexDateTime
The index the grouping is over. - distance
- Type: SystemTimeSpan
The maximum distance between keys within a window.
Must be greater than zero. - direction (Optional)
- Type: Extreme.DataAnalysisDirection
Indicates whether the keys representing each group
should be the first (forward) or the last (backward) in each group.
Return Value
Type:
GroupingDateTimeA grouping object that represents the moving window.
Reference