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<double> RangeWindow(
Index<double> index,
double distance,
Direction direction = Direction.Forward
)
Public Shared Function RangeWindow (
index As Index(Of Double),
distance As Double,
Optional direction As Direction = Direction.Forward
) As Grouping(Of Double)
public:
static Grouping<double>^ RangeWindow(
Index<double>^ index,
double distance,
Direction direction = Direction::Forward
)
static member RangeWindow :
index : Index<float> *
distance : float *
?direction : Direction
(* Defaults:
let _direction = defaultArg direction Direction.Forward
*)
-> Grouping<float>
Parameters
- index
- Type: Extreme.DataAnalysisIndexDouble
The index the grouping is over. - distance
- Type: SystemDouble
The maximum distance between keys within a window.
Must be greater than zero. - direction (Optional)
- Type: Extreme.DataAnalysisDirection
Specifies whether the group keys should be the first
(forward) or last (backward) key in each group.
Return Value
Type:
GroupingDoubleA grouping object that represents the moving window.
Reference