pycrostates
pycrostates copied to clipboard
updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.4)
#160 - [x] Change correlation computation to use cosine similarity - [x] Change gfp to either use `std `or `rms` TODO: - [ ] make sure to use correlation and...
Hello, this is the new feature I described in Issues, and I open a pull requests here. This is a draft of the thoughts, and not heavily tested. Closes #117
Closes #138
Closes #160 As discussed in #92, we could add support for taking into account polarities in the analysis. Here is a list of changes that need to be implemented: -...
The distance between two vectors should be a linear function _distance_matrix should be changed from ``` def _distance_matrix(X, Y=None): """Distance matrix used in metrics.""" distances = np.abs(1 / np.corrcoef(X, Y))...
GFP equation
Looking quickly through GFP stuff, this is the equation I find in MNE: ``` np.sqrt((data**2).mean(axis=1)) ``` And this is in pycrostates: https://github.com/vferat/pycrostates/blob/ff3da2b02024d5a54d09878d87d14834859d38dd/pycrostates/preprocessing/extract_gfp_peaks.py#L160 @vferat Any opinion here?
Hello, I am trying to use the transition matrix on an MEG dataset in sensor space. However, when I plot it the matrix is very uniform. For 5 states, the...
Similar to an epoch object where you can do `epochs["my condition"]`, an `EpochsSegmentation` should be indexable. Suggested by Vincent today ;) c.f. https://github.com/mne-tools/mne-python/blob/6733cae2a0765da9ec1b67a98937839d4cd9aadf/mne/utils/mixin.py#L78-L144
ERPs
Is there a way to perform the segmentation on ERPs?