Research Article

P300 Detection Based on EEG Shape Features

Algorithm 1

Calibration algorithm.
1:
2:
3:
4: while    do
5:  
6:  for    to  
7:   for    to  
8:    
9:    
10:   for    to  
11:     
12:     
13:     
14:   for    to  
15:     
16:     
17:     
18:   
19:  
20:
21:
22:
23:
24:
25: return  , , , , and