|
Description:
|
|
|
|
|
|
|
|
|
Without loss of generality, assume the element xr ∈ Q' is mapped to the element zi ∈ Q
|
Then:
rminQ(zi) = rminQ'(xr) if ys is undefined rminQ(zi) = rminQ'(xr) + rminQ''(ys) otherwise |
|
Then the values rmin(zi) and rmax(zi) are defined as follows:
|
|
Then the values rmin(zi) and rmax(zi) are defined as follows:
|
|
Then the values rmin(zi) and rmax(zi) are defined as follows:
|
Rank: 1 2 3 4 5 6 7 8
Sorted Stream 1: 2 3 4 6 7 8 10 17
Sorted Stream 2: 1 4 7 9 11 12 13 15
Q' = { 2:[1..1], 4:[3..4], 8:[5..6], 17:[8..8] }
Q'' = { 1:[1..1], 7:[3..3], 12:[5..6], 15:[8..8] }
(Q' and Q'' are quantile summaries with εN = 3
According to (click here): g + Δ = rmax(vi) - rmin(vi-1)
)
|
Input:
Q' = { 2:[1..1], 4:[3..4], 8:[5..6], 17:[8..8] }
Q'' = { 1:[1..1], 7:[3..3], 12:[5..6], 15:[8..8] }
|
Combined stream:
Rank: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 2 3 4 4 6 7 7 8 9 10 11 12 13 15 17
|
Summary:
Q = 1:[1..1] 2[2..2] 4[4..6] 7[6..8] 8[8..11] 12[10..13] 15[13..15] 17[16..16] Max( rmax(vi) - rmin(vi-1) ) = 5 !!! However: N = 16, so εN is also twice as large !!! |
|
|
|
|
|
|
We may want to cut down on the number of entries used in the summary...
However, the reduction comes with at a cost:
|
Input: S = quantile summary
B = parameter
|
|
|