Hello,
I'm working with neural decoding and I have to cluster the spikes into three classes using Gaussian distribution, I have found the boundaries for each class that will make them well separable but when I run the code the accuracy is very low and I couldn't know why the code isn't able to assign the spikes into the correct classes. I have 16 features in my data and I used two of those features to set the boundaries the first one is the start of the spike (first feature) the second one is the 8th feature which is the peak of the spike (lowest point). what might be the problem
if spike_waveform(1,i)>=-4.08e-5 && spike_waveform(1,i)<2.13e-5 &&...
spike_waveform(8,i)>=-3.54e-4 && spike_waveform(8,i)<-1.96e-4
elseif spike_waveform(1,i)>=-2.79e-5 && spike_waveform(1,i)<5.81e-5 &&...
spike_waveform(8,i)>=-3.77e-4 && spike_waveform(8,i)<-2.06e-4