Closed fernandoandreotti closed 10 years ago
Looks like it is not dependent on the number of electrodes but on the number of noise sources. Particularly, these lines from "generate_ecg_mixture.m":
ampnorm = diag(1./sum(ampn,2))*ampn;
ampn = reshape(sqrt(sum((signaln).^2,2)),NB_EL,[]);
and
p = sqrt(exp(-log(10)*SNRmn./(10*ampnorm(:,i))).*Peach(:,i)./ampn(:,i).^2);
Fixed it, by changing formula to:
p = 10.^(-SNRmn/20*sqrt(Pm./Peach(:,i)));
Also corrected maternal projection, which was wrong.
After changing electrode positions, calibration does not seem to be working properly.