1: |
Input:b.list % the sequence number set of intervals |
|
b[low/high, length(b.list)] % boundary of intervals |
2: |
Description:
|
|
bd[low/high, m, K] % the boundary matrix of the sub-intervals |
|
bp[m, K] % the representative value matrix of the sub-intervals |
3: |
diff←(b[high] − b[low])/K
|
4: |
fori←0:K − 1 do
|
5: |
bd[low, b.list, i]←i⋅diff + b[low] |
6: |
bd[high, b.list, i]←(i + 1)⋅diff + b[low] |
7: |
end for
|
8: |
bp[b.list, 0:K − 1]←round((bd[high] − bd[low])/2) |
|
% The round function performs rounding to the nearest precision |
9: |
Output:bp, bd
|
|