MCPcopy
hub / github.com/mne-tools/mne-python / _integrate_points

Function _integrate_points

mne/preprocessing/maxwell.py:1869–1875  ·  view source on GitHub ↗

Integrate points in spherical coords.

(
    cos_az, sin_az, cos_pol, sin_pol, b_r, b_az, b_pol, cosmags, bins, n_coils
)

Source from the content-addressed store, hash-verified

1867
1868
1869def _integrate_points(
1870 cos_az, sin_az, cos_pol, sin_pol, b_r, b_az, b_pol, cosmags, bins, n_coils
1871):
1872 """Integrate points in spherical coords."""
1873 grads = _sp_to_cart(cos_az, sin_az, cos_pol, sin_pol, b_r, b_az, b_pol).T
1874 grads = (grads * cosmags).sum(axis=1)
1875 return bincount(bins, grads, n_coils)
1876
1877
1878def _tabular_legendre(r, nind):

Callers 1

_sss_basisFunction · 0.85

Calls 3

_sp_to_cartFunction · 0.85
bincountFunction · 0.85
sumMethod · 0.45

Tested by

no test coverage detected