In ERP/P300 signal analysis, xDAWN is well-known to find the spatial filter.
I have read several reference papers about xDAWN, such as
xDAWN Algorithm to Enhance Evoked Potentials: Application to Brain–Computer Interface
A Tutorial on EEG Signal Processing Techniques for Mental State Recognition in Brain-Computer Interfaces
But I still do not know very well about xDAWN. So far, I know that the first column of D is 0 except the positions of stimuli onset, but how about the other columns? or we do not need to know the others then we can create the Toeplitz matrix?
Would you please give me an example? Where can I find the source code of xDAWN to let me study more about it?