From: Stream-based Hebbian eigenfilter for real-time neuronal spike discrimination
Input: |
---|
Neuronal spikes, ; |
Initial synaptic weight, ; |
Learning rate, η; |
Output: |
Principal components of neuronal spikes, ; |
1. Initialize synaptic weight and learning rate η, j = 1 |
2. Calculate the mean vector of n aligned spikes |
   a. i= 1, |
    b. When new spike arrives |
    c. If i equals to n, , and go to step 3. Otherwise i = i + 1, go to Step 2.b |
3. When new spike arrives, subtract the mean vector obtained from step 2 |
    |
4. Perform Hebbian x learning on |
    |
    |
    |
    |
5. If j= N, the algorithm stops, otherwise j = j + 1, go to step 3 |