INSTITUT FÃR INFORMATIK Entwurf und Implementierung - Ludwig ...
INSTITUT FÃR INFORMATIK Entwurf und Implementierung - Ludwig ...
INSTITUT FÃR INFORMATIK Entwurf und Implementierung - Ludwig ...
Erfolgreiche ePaper selbst erstellen
Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.
25 if(state == InterIctal) {<br />
26 state = PreIctalSPH;<br />
27 lastAlarmTime = alarmTime;<br />
28 }<br />
29<br />
30 }<br />
31<br />
32<br />
33 /////////////////////////////////////////////////////////////////////////////<br />
34 /// public SignalSeizure<br />
35 /// Signals a seizure<br />
36 ///<br />
37 /// @param [in] seizure TimePeriod Time of the seizure (in seconds)<br />
38 ///<br />
39 void PredictionSystem::SignalSeizure(TimePeriod seizure) {<br />
40<br />
41 CheckTimeouts(seizure.startTime);<br />
42<br />
43 if(state == InterIctal) {<br />
44<br />
45 // unpredicted seizure<br />
46 state = PostIctal;<br />
47 } else if(state == PreIctalSPH) {<br />
48<br />
49 // incorrect alarm<br />
50 parameter->AddIncorrectAlarm(lastAlarmTime);<br />
51 state = PostIctal;<br />
52<br />
53 } else if(state == PreIctalSOP) {<br />
54 }<br />
55<br />
56 // correct prediction<br />
57 parameter->AddCorrectAlarm(lastAlarmTime);<br />
58<br />
59 state = PostIctal;<br />
60 currentTime = seizure.endTime + project.timeAfterSeizure;<br />
61<br />
62 } else if(state == PostIctal) {<br />
63 // ignore<br />
64 }<br />
65<br />
66 lastSeizureTime = seizure.endTime;<br />
67 }<br />
68<br />
69<br />
70 /////////////////////////////////////////////////////////////////////////////<br />
71 /// public CheckTimeouts<br />
72 /// Method to regularly check possible timeouts of the prediction system<br />
xv