Skip to main content
. 2022 Nov 15;22(22):8814. doi: 10.3390/s22228814
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