Harmonic to noise ratio calculation

조회 수: 10 (최근 30일)
Khandaker Noman
Khandaker Noman 2019년 6월 28일
편집: Manuel Brandner 2020년 12월 19일
How can i calculate the harmonic to noise ratio of a signal?

답변 (3개)

Chinmay Anand
Chinmay Anand 2019년 6월 28일
You can look into this link for this.
  댓글 수: 2
Khandaker Noman
Khandaker Noman 2019년 6월 28일
Actually this calculates SNR, is there any function to calculate HNR?
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 6월 28일
This is SNR, HNR is different.

댓글을 달려면 로그인하십시오.


KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 6월 28일
편집: KALYAN ACHARJYA 2019년 11월 16일
You can use this custom function to calculate harmonic to noise ratio (HNR)
To understand in detail theory, read here
  댓글 수: 5
mariem khrissi
mariem khrissi 2020년 11월 25일
does noofframes correspond to the number of frames ??
Manuel Brandner
Manuel Brandner 2020년 12월 19일
편집: Manuel Brandner 2020년 12월 19일
noofframes equals signalblocks. in matlab you can use buffer to chop the signal into blocks with or without a certain overlap. Each signal block is then used in the HNR code to calculate the autocorrelation. After that the first zero crossing of the normalized autocorrelation is searched for. The maximum peak value is searched for with the max function and the sample position is then used (in the best case this gives you also the underlying fundamental frequency = fs/samplepos).
the energy at this position compared to the overall energy (value of the autocorrelation at index = 1) gives you the harmonic to noise ratio.
or for the normalized autocorrelation:
drawbacks as far as I understand it are:
  • pitch dependency
  • accuracy decreases if the signal gets more complex (in speech for example formants)
  • SNR has an influence on the values in terms of comparison of several measurement situations

댓글을 달려면 로그인하십시오.


Li feng
Li feng 2019년 11월 16일
what is noOfFrames?
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 16일
Please write the comment in comment section only (Just below the answer).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by