how to normalize a signal to zero mean and unit variance

5 vues (au cours des 30 derniers jours)
sahana kp
sahana kp le 30 Jan 2017
i'm trying to normalize EHG signal's wavelet components to zero mean and unit variance,and i have used
cA3=reshape(zscore(cA3(:)),size(cA3,1),size(cA3,2));
this matlab expression,and got an answer like this
>> mean2(cA3(:))
ans =
-2.84121591248158e-16
>> var(cA3(:))
ans =
1
  1 commentaire
sahana kp
sahana kp le 31 Jan 2017
Modifié(e) : Walter Roberson le 31 Jan 2017
how can i normalize the wavelet component with respect to other wavelet components to zero mean and unit variance..
term_dat1=importdata('tpehg1022m.mat');
term_dat1=term_dat1';
tdat1=term_dat1(:,1);
[cA1,cH1,cV1,cD1] = dwt2(tdat1,'db4');
[cA2,cH2,cV2,cD2] = dwt2(cA1,'db4');
[cA3,cH3,cV3,cD3] = dwt2(cA2,'db4');
DWT_feat = [cA3,cH3,cV3,cD3];
cA3=reshape(zscore(cA3(:)),size(cA3,1),size(cA3,2));
cH3=reshape(zscore(cH3(:)),size(cH3,1),size(cH3,2));
cV3=reshape(zscore(cV3(:)),size(cV3,1),size(cV3,2));
cD3=reshape(zscore(cD3(:)),size(cD3,1),size(cD3,2));
is this code enough ?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 30 Jan 2017
Those values are normalized. The 1e-16 is due to limitations in floating point calculation

Plus de réponses (0)

Catégories

En savoir plus sur Continuous Wavelet Transforms dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by