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

Function error

mne/coreg.py:475–482  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

473 if param_info == (True, False, 0):
474
475 def error(x):
476 rx, ry, rz = x
477 trans = rotation3d(rx, ry, rz)
478 est = np.dot(src_pts, trans.T)
479 d = tgt_pts - est
480 if weights is not None:
481 d *= weights
482 return d.ravel()
483
484 if x0 is None:
485 x0 = (0, 0, 0)

Callers

nothing calls this directly

Calls 4

rotation3dFunction · 0.85
translationFunction · 0.85
rotationFunction · 0.85
scalingFunction · 0.85

Tested by

no test coverage detected