njit-etd2003-081 - New Jersey Institute of Technology
njit-etd2003-081 - New Jersey Institute of Technology njit-etd2003-081 - New Jersey Institute of Technology
263 if Question_2='y' order=input('Please enter the order of the lowpass filter --> '); freq=input('Please enter the cutoff frequency for LPF --> '); nfreq=freq/sample; [poles,zero]=butter(order,nfreq); dtrend=filtfilt(poles,zero,rawdata); Result Signa=rawdata-dtrend; Signa=Result_Signa; else end Question_3=input('Do you want to calculate Instantaneous Frequency [y/n] --> ','s'); Question_4=input('Do you want to calculate Median Frequency [y/n] --> ','s'); if Question_4=='y' LF=input('Please enter the low frequency [Hz] -->'); HF=input('Please enter the High frequency [Hz] -->'); else end Question_6=input('Do you want to extract certain Frequency range [y/n] --> ','s'); if Question_6=='y'; LFC=input('Please enter the low frequency range in index -->'); HFC=input('Please enter the high frequency range in index -->'); else end hlf=(Lwin+1)/2-1; 1=2*hlf+Lwin/2; signal=hilbert([zeros(1,2*hlf),Signa,zeros(1,2*hlf]); signal_conjugate=conj(signal); % (Smoothed WVD using a rectangular window of odd length) if choose==3 P=input('Please enter the length of smoothing region --> '); distribution=['smoothed WVD']; G=(1/(2*P-1))*ones(hlf+1,hlf+1); G(:,hlf+1)=zeros(hlf+1,l); (Choi-Williams) elseif choose==4 distribution=['Choi_Williams']; Sigma= 1 ; G=zeros(hlf+1,hlf+1); G(1,1)=1.0; for j= 1 :hlf; for i=0:hlf, G(i+1,j+1)=exp(((-1)*Sigma*i*i)/(4*j*j)); end
264 G(:j+1)=G(:,j+1)/(2*sum(G(:j+1))- G(1j+1)); end (Short Time Fourier Transform) elseif choose==1 distribution=['Short Time Fourier Transform']; G=(11(2*hlf-1))*fliplr(triu(ones(hlf+1,hlf+1),0)); (Born-Jordan-Cohen) elseif choose==5 distribution=['Born_Jordan_Cohen']; G=fliplr(flipud(triu(ones(hlf+1,hlf+1),0))); for i=0:hlf, G(i+1,:)=(1/(1+0)*G(i+1,:), end (Rihaczek-Margenau) elseif choose==6 distribution=['Rihaczek Margenau']; G=ones(hlf+1,hlf+1); G=0.5 *diag(diag(G)); G(1,1)=1; end (Computation of TFDs) Timeslice=floor((length(signal)-4*hlf-(Lwin/2))/skip); kernel=zeros(fftlen,Timeslice); TFDs=zeros(Lwin,Timeslice); if Timeslice
- Page 241 and 242: 212 For better presentation of the
- Page 243 and 244: Figure 5.53 Coherence and partial c
- Page 245 and 246: 216 2. Interpretation of the transf
- Page 247 and 248: 218 covariances of the parameters,
- Page 249 and 250: 220 deviations are interpreted as A
- Page 251 and 252: 222 Figure 5.58 Bode plot of the HR
- Page 253 and 254: 224 In this section a simple model
- Page 255 and 256: 226 The data for all 47 COPD subjec
- Page 257 and 258: 228 Figure 5.60 Normal and COPD cla
- Page 259 and 260: 230 Figure 5.61 Normal and COPD cla
- Page 261 and 262: 232 Figure 5.62 Normal classificati
- Page 263 and 264: 234 5.7 Cluster Analysis The purpos
- Page 265 and 266: 236 Figure 5.64 Severity classifica
- Page 267 and 268: 238 both the normal and COPD subjec
- Page 269 and 270: 240 In summary, COPD subjects had h
- Page 271 and 272: APPENDIX A EXERCISE PHYSIOLOGY A.1
- Page 273 and 274: 244 A.3 Figure Out Your Target Hear
- Page 275 and 276: APPENDIX B ANALYSIS PROGRAM LISTING
- Page 277 and 278: 248 4) Click on file, close to exit
- Page 279 and 280: 250 • TN 11
- Page 281 and 282: 252 B.1.2 Partial Coherence Between
- Page 283 and 284: 254
- Page 285 and 286: 256 Block Diagram !rime of record K
- Page 287 and 288: 258
- Page 289 and 290: 260 B.2.2 Time — Frequency Analys
- Page 291: 262 This program provides the STFT
- Page 295 and 296: 266 T=(length(Signa)/sample)/(Times
- Page 297 and 298: 268 subplot(3, 1,3), plot(T,E); xla
- Page 299 and 300: 270 4. The program creates five out
- Page 301 and 302: 272 B.2.3.4 Program to Generate Sym
- Page 303 and 304: 274 ylabel('frequency'); title('Ins
- Page 305 and 306: 276 The program will run and output
- Page 307 and 308: 278 axis([0 1 0 2]); grid on; xlabe
- Page 309 and 310: 280 vagal=sum(TFDs(HFC,1:k)); symto
- Page 311 and 312: 282 plot(J,symtopar); %plot(A,symto
- Page 313 and 314: 284 4. Remove the constant levels a
- Page 315 and 316: 286 Make sure the agreement is quit
- Page 317 and 318: 288 B.2.6 Principal Components Anal
- Page 319 and 320: 290 Columns 12 through 15 'LF_pcoh_
- Page 321 and 322: 292 I= 1.0000 -0.0000 -0.0000 -0.00
- Page 323 and 324: 294 variances = 3.4083 1.2140 1.141
- Page 325 and 326: 296 B.2.7 Cluster Analysis Program
- Page 327 and 328: 298 end [R,C]=size(Data); if length
- Page 329 and 330: 300 B.2.8 Cross-correlation Program
- Page 331 and 332: 302 C.3 Partial coherence of HR and
- Page 333 and 334: 304 [13] Madwed, J., and R. Cohen.
- Page 335 and 336: 306 [41] Mallat, S. G., "A Theory f
- Page 337: [70] Tazebay, M.V., R.T. Saliba and
263<br />
if Question_2='y'<br />
order=input('Please enter the order <strong>of</strong> the lowpass filter --> ');<br />
freq=input('Please enter the cut<strong>of</strong>f frequency for LPF --> ');<br />
nfreq=freq/sample;<br />
[poles,zero]=butter(order,nfreq);<br />
dtrend=filtfilt(poles,zero,rawdata);<br />
Result Signa=rawdata-dtrend;<br />
Signa=Result_Signa;<br />
else<br />
end<br />
Question_3=input('Do you want to calculate Instantaneous Frequency [y/n] --> ','s');<br />
Question_4=input('Do you want to calculate Median Frequency [y/n] --> ','s');<br />
if Question_4=='y'<br />
LF=input('Please enter the low frequency [Hz] -->');<br />
HF=input('Please enter the High frequency [Hz] -->');<br />
else<br />
end<br />
Question_6=input('Do you want to extract certain Frequency range [y/n] --> ','s');<br />
if Question_6=='y';<br />
LFC=input('Please enter the low frequency range in index -->');<br />
HFC=input('Please enter the high frequency range in index -->');<br />
else<br />
end<br />
hlf=(Lwin+1)/2-1;<br />
1=2*hlf+Lwin/2;<br />
signal=hilbert([zeros(1,2*hlf),Signa,zeros(1,2*hlf]);<br />
signal_conjugate=conj(signal);<br />
% (Smoothed WVD using a rectangular window <strong>of</strong> odd length)<br />
if choose==3<br />
P=input('Please enter the length <strong>of</strong> smoothing region --> ');<br />
distribution=['smoothed WVD'];<br />
G=(1/(2*P-1))*ones(hlf+1,hlf+1);<br />
G(:,hlf+1)=zeros(hlf+1,l);<br />
(Choi-Williams)<br />
elseif choose==4<br />
distribution=['Choi_Williams'];<br />
Sigma= 1 ;<br />
G=zeros(hlf+1,hlf+1);<br />
G(1,1)=1.0;<br />
for j= 1 :hlf;<br />
for i=0:hlf, G(i+1,j+1)=exp(((-1)*Sigma*i*i)/(4*j*j));<br />
end