MCPcopy Index your code
hub / github.com/mne-tools/mne-python / _prepare_G

Function _prepare_G

mne/preprocessing/_csd.py:27–35  ·  view source on GitHub ↗
(G, lambda2)

Source from the content-addressed store, hash-verified

25
26
27def _prepare_G(G, lambda2):
28 G.flat[:: len(G) + 1] += lambda2
29 # compute the CSD
30 Gi = np.linalg.inv(G)
31
32 TC = Gi.sum(0)
33 sgi = np.sum(TC) # compute sum total
34
35 return Gi, TC, sgi
36
37
38def _compute_csd(G_precomputed, H, radius):

Callers 1

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected