| Algorithm 1. Client algorithm. |
A. function Analyze (Bit rates): Read start data point, startp; Read end data point, endp; Find median value, medianp; If (startp, medianp, endp) tends to monotonic increase, return ; Else if (startp, medianp, endp) tends to monotonic decrease, return ; If (startp, medianp and endp) tends to neither monotonic increase nor decrease, return ; B. function Find_RMS (Bit rate): Calculate the root mean square (RMS) of the samples; Divide the N different samples into M segments (M = 3); Continue Step1 to find the RMS values of each segments: ; Compute the difference among the overall RMS and the RMS of the corresponding segments; Calculate ; Calculate ; Calculate ; If , then return 1; Else if , then return 0; Else return 2. |