emgr icon indicating copy to clipboard operation
emgr copied to clipboard

Fix state-weighting

Open gramian opened this issue 5 years ago • 0 comments

The state weighting closure (emgr.m, line 180) should be:

            wei = @(m) 1.0 ./ max(sqrt(eps),vecnorm(m,2,1));

similarly emgr.py, line 212 should be:

            return 1.0 / np.maximum(math.sqrt(np.spacing(1)),np.linalg.norm(m, 2, axis=0))

This will be fixed in version 5.9

gramian avatar May 03 '20 10:05 gramian