Sort and Stratify
Function Description
This step can sort and stratify input multi-dimensional number lists according to specified rules, move the original indices of numbers according to the sorting and stratification results, and finally output the processed numbers, indices, and index information reflecting the sorting and stratification process. If the input is a multi-dimensional number list, each array in the last dimension of the number list is processed independently.
Use Cases
This step is used for multi-dimensional sorting, and can be combined with other steps to achieve sorting and stratification operations on specified dimensions of data.
Inputs
Data to Process: Number list to be sorted and stratified.
Original Data Indices: Index list corresponding to the number list, usually from other steps.
Outputs
Processed Data: Number list sorted and stratified according to specified rules.
Processed Data Indices: Original indices of data rearranged after sorting and stratification.
Sorting and Stratification Index: Index information reflecting the sorting and stratification process.
Parameters
Sort in Ascending Order
Specifies the sorting method for the number list. Checked by default. If unchecked, sort in descending order.
Layer Interval
Layer interval during number stratification, in millimeters (mm). Default value: 50.0 mm.
Note: The unit of the input number list is meters (m).
Layer Start Position
Specifies the start position of numbers in each layer during sorting and stratification.
End of Previous Stratum Range: Each layer range connects end to start, not dependent on data, no gaps between layers.
First Number of This Stratum: Each layer range is determined by the data itself, and there may be gaps between layers. When data values are dispersed, gaps may be larger.
Example
Input data to process is as shown in the table below:
Data to Process |
[[30, 10, 20], [20, 10]] |
|---|---|
Original Data Index |
[[4, 5, 6], [3, 2]] |
Parameter settings: Use default settings.
Output data after processing is as shown in the table below:
Processed Data |
[[[10], [20], [30]], [[10], [20]]] |
|---|---|
Processed Data Index |
[[[5], [6], [4]],[[2], [3]]] |
Sorting and Stratification Index |
[[[1], [2], [0]], [[1], [0]]] |