nipreps / eddymotion

Open-source eddy-current and head-motion correction for dMRI.
https://nipreps.org/eddymotion
Apache License 2.0
14 stars 16 forks source link

DOC: Update covariance function vs. empirical notebook #218

Closed oesteban closed 4 months ago

oesteban commented 4 months ago

Supersedes #215.

covariance-plot

oesteban commented 4 months ago

wondering what was wrong with the previous approach (besides the standardization of the data, and being a lot less elegant than this one).

The covariance calculation was off. np.cov requires only one array of shape (n_features, n_samples). Features here is orientations at b=90. The output is a (90, 90) matrix. In your book you get a size in the thousands after the for loop.