| Algorithm 2 Parameter_Selection. | |
| Input: Currently partitioned dataset dd | |
| Output: Parameter dc | |
| 1 | disMat = squareform(dd) // Statistical data distance total to get distance matrix |
| 2 | position = int(n * (n − 1) * per/100) //per = 2%, N represents the number of currently divided datasets, and records the selected truncation distance dc position |
| 3 | dc = sort(t)[position + N] |
| 4 | return dc / / return parameter |