jmarkow / spikoclust

SPIKOsaurus CLUST: A MATLAB toolbox for split-and-merge-expectation-maximization-based spike sorting
Other
1 stars 1 forks source link

Sigma dimensions are incorrect #1

Closed wingillis closed 9 years ago

wingillis commented 9 years ago
Error using mvnpdf (line 129)
SIGMA must be a square, symmetric, positive definite matrix.

Error in spikoclust_gmem>fullem (line 395)
        pxtheta=mvnpdf(DATA,mu(j,:),sigma(:,:,j)+eye(D)*sigma_fix); % point x 1 vector

Error in spikoclust_gmem (line 129)
[newmodel]=fullem(DATA,INIT,unip,maxiter,epsilon,lambda,sigma_fix);

Error in spikoclust_gmmsort (line 74)
    tmpnewmodel{i}=spikoclust_gmem(SPIKE_DATA',[],1,'garbage',1,'merge',0,'debug',0);

Error in spikoclust_autosort (line 63)
[idx CLUSTER_DATA MODEL]=spikoclust_gmmsort(SPIKES.windows,...

Error in spikoclust_sort (line 314)
    [labels model cluster_data]=spikoclust_autosort(spikes,'clust_check',clust_check,...

Error in fw_analysis (line 71)
spikes_sorted=spikoclust_sort(double(agg_data.data(:,:)),agg_data.fs,'freq_range',[300 3e3],'spike_window',[.001
.0015],'clust_check',1:4,'sigma_t',3);
jmarkow commented 9 years ago

Just added a routine to automatically condition the covariance matrix if necessary. Considering the issue closed.