mne.forward.compute_orient_prior¶
-
mne.forward.
compute_orient_prior
(forward, loose='auto', verbose=None)[source]¶ Compute orientation prior.
- Parameters
- forwardinstance of
Forward
Forward operator.
- loose
float
| ‘auto’ |dict
Value that weights the source variances of the dipole components that are parallel (tangential) to the cortical surface. Can be:
- float between 0 and 1 (inclusive)
If 0, then the solution is computed with fixed orientation. If 1, it corresponds to free orientations.
'auto'
(default)Uses 0.2 for surface source spaces (unless
fixed
is True) and 1.0 for other source spaces (volume or mixed).
- dict
Mapping from the key for a given source space type (surface, volume, discrete) to the loose value. Useful mostly for mixed source spaces.
- verbosebool,
str
,int
, orNone
If not None, override default verbose level (see
mne.verbose()
and Logging documentation for more). If used, it should be passed as a keyword-argument only.
- forwardinstance of
- Returns
- orient_prior
ndarray
, shape (n_sources,) Orientation priors.
- orient_prior
See also