(1) Input: summary window count (), sensitivity (), trigger duration (), instantaneous measurement () |
(2) Output: mean ,
network health grade ,
control status |
(3) begin procedure |
(4) repeat |
(5) for each new do |
(6) = No_Event; = Allow_Control |
(7) Calculate mean
() and standard deviation () of summary window buffer (sumbuff)
|
(8) if ( == 0 NE state ) then |
(9) Calculate upper (, ) and lower (, ) thresholds using and of sumbuff and |
(10) else |
(11) TE state Calculate upper (, ) and lower (, ) elevated thresholds using trigbuff |
(12) end if |
(13) Compare with the thresholds and assign to appropriate buffer |
(14) if ( or ) then |
(15) Put into quarantine buffer qbuff; Increment |
(16) end if |
(17) if ( or ) then |
(18) Put into sample buffer sampbuff;
Increment |
(19) end if |
(20) Report
anomaly event types |
(21) if () then |
(22) = Event_Detected; Copy sampbuff and qbuff to sumbuff; Reset |
(23) else if () then |
(24) = Event_Impending |
(25) else |
(26) = No_Event |
(27) end if |
(28) Update the buffers with latest network
health norm |
(29) if ( == 0 and trigbuff not empty) then |
(30) Copy sampbuff to sumbuff; Empty qbuff |
(31) end if |
(32) Report of sumbuff, and |
(33) if (magnitude of in Good grade level) then |
(34) return , = Good, = open |
(35) else if (magnitude of in Acceptable grade level) then |
(36) return , = Acceptable, = open |
(37) else if (magnitude of in Poor grade level) then |
(38) if ( == Event_Detected) then |
(39) return , = Poor, = Block_Control |
(40) end if |
(41) if ( == Event_Impending) then |
(42) return , = Poor, = Warn_Control |
(43) end if |
(44) end if |
(45) end for |
(46) until end of RICE session |
(47) end procedure |