필터 지우기
필터 지우기

measure the bit rate

조회 수: 5 (최근 30일)
maor
maor 2012년 10월 13일
I load a data of ecg signal to matlab and manipulate it with lots of mathematics equations. At the end of the process I got a residual signal with low variance, that enable me compress the original signal. For example: I determine that every sample of the residual signal that has the value that is less than 0.05 equals to zero and I got a new residual signal that can be represented with half of the samples than before the zero reset. Now I do the mathematics manipulations backwards and get a new reconstructed ecg signal. My question is how can I measure the compression ratio? Can I measure the bit rate in the original signal and in the reconstructed one? If I can do it, what are the functions I need to use for calculating the bit rate of a signal that is represented by a row vector…?

답변 (3개)

Walter Roberson
Walter Roberson 2012년 10월 13일
Compression ratio is (total memory occupied by all variables needed to completely represent the compressed version of the signal) divided by (total memory occupied by all variables needed to represent the uncompressed version of the signal)
  댓글 수: 1
maor
maor 2012년 10월 13일
Thanks for the quick answer. I referred to the answer in a new massage

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


maor
maor 2012년 10월 13일
Yes that I already know. If I represent the reconstruct signal and the original signal by vectors of the same length, the total memory occupied by those vectors are the same (in case I export those vectors to txt file). Is there a way to measure the bit rate in matlab, because the reconstruct signal is represented by fewer bits per sample (due to the mathematics manipulation)..?
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 10월 13일
You said in your Question that the new residual signal can be represented in half of the samples that were required before the manipulation. Is it half the samples, or that fewer bits are used per sample ?

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


maor
maor 2012년 10월 14일
somebody?? someone know the answer for that????
  댓글 수: 3
maor
maor 2012년 10월 30일
i didnt understand that. can you be more specific?
Walter Roberson
Walter Roberson 2012년 10월 30일
Bit rate for compressed data = number of bits occupied by compressed data, divided by time to send in.
Bit rate for uncompressed data = number of bits occupied by uncompressed data, divided by time to send in.
The ratio of the two = (#bits compressed / time) / (#bits uncompressed / time). The division by time cancel out, leaving (#bits compressed / #bits uncompressed)
And that is the formula I indicated above, ratio of the sizes. You can calculate the rate but the times cancel out algebraically leaving you with the sizes only, so you might as well just calculate those and ignore the rate.

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

카테고리

Help CenterFile Exchange에서 ECG / EKG에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by