fernandoandreotti / fecgsyn

FECGSYN toolbox for ECG and fetal ECG simulation
http://www.fecgsyn.com/
GNU General Public License v3.0
80 stars 26 forks source link

SNRmn is acting wierd #4

Closed fernandoandreotti closed 10 years ago

fernandoandreotti commented 10 years ago

After changing electrode positions, calibration does not seem to be working properly.

fernandoandreotti commented 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);

fernandoandreotti commented 10 years ago

Fixed it, by changing formula to: p = 10.^(-SNRmn/20*sqrt(Pm./Peach(:,i))); Also corrected maternal projection, which was wrong.