carlson-lab / lpne-data-analysis

1 stars 0 forks source link

Error using chol #11

Closed Noah-Lanier closed 2 years ago

Noah-Lanier commented 2 years ago

When calculating ds features, after 13999 correctly calculated windows, there is an error saying

Error using chol Matrix must be positive definite.

Error in wilson_sf (line 78) U(:,:,j) = chol(Sarr(:,:,j) + eye(size(Sarr, 1))2eps);

Error in directed_spectrum (line 91) [H, SIG] = wilson_sf(thisCpsd, fs);

Error in saveFeatures (line 276) [directedSpectrum, dsFeatures, S] = directed_spectrum(X, labels.area, fs, f,...

This has happened two times I have tried to calculate features. This is for the cSDS_EPM data.

Noah-Lanier commented 2 years ago

I am definitely using the latest version of the conditional_lsd branch btw, so it isn't an issue with me using the wrong branch/version. My directedSpectrum feature version is 'directed_spectrum_1.0'