Back to the main page.

Bug 2183 - MNE does not allow lambda to be in percentage (e.g. cfg.mne.lambda = '5%')

Reported 2013-06-03 11:55:00 +0200
Modified 2014-01-15 14:44:44 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Jörn M. Horschig - 2013-06-03 11:55:00 +0200

any reason why this cannot be done for MNE as well? For LCMV, such a string gets converted: % it is difficult to give a quantitative estimate of lambda, therefore also % support relative (percentage) measure that can be specified as string (e.g. '10%') if ~isempty(lambda) && ischar(lambda) && lambda(end)=='%' ratio = sscanf(lambda, '%f%%'); ratio = ratio/100; lambda = ratio * trace(Cy)/size(Cy,1); end where Cy is the data covariance

Jan-Mathijs Schoffelen - 2013-11-29 11:19:12 +0100

The reason is, that the lambda parameter in MNE has a slightly different meaning than the lambda parameter in the beamformers. Not sure whether the percentage convention is easily transportable to MNE. I don't see a strong reason to make this consistent.