# Formula to calculate the rate for a compression algorithm

Started by April 18, 2007
```Hi all,

In the case I don't know the sampling frequency. Specifically, I only
given a discrete function:

f[n]= blah blah..... with length N.

I use wavelet based compression method:

Decompose the signal into N wavelet coefficients, quantize and then
encode these coefficients with M bits for each coefficient.

Now to report the algorithm, I need to submit it's RATE.  In the case,
what formula is for RATE calculation?

I guess it will be Size of compressed data /  size of original data

I  know the size of my compressed data: it is the number of bits *
number of coefficients= M*N  bits

But what is the size of my original data :(f(n))??

Thanks

```
```On Apr 18, 11:23 am, "A.E lover" <aelove...@gmail.com> wrote:
> Hi all,
>
> In the case I don't know the sampling frequency. Specifically, I only
> given a discrete function:
>
> f[n]= blah blah..... with length N.
>
> I use wavelet based compression method:
>
> Decompose the signal into N wavelet coefficients, quantize and then
> encode these coefficients with M bits for each coefficient.
>
> Now to report the algorithm, I need to submit it's RATE.  In the case,
> what formula is for RATE calculation?
>
> I guess it will be Size of compressed data /  size of original data
>
> I  know the size of my compressed data: it is the number of bits *
> number of coefficients= M*N  bits
>
> But what is the size of my original data :(f(n))??
>
> Thanks

Assuming all 'blah' have same number of bits, would that not be:
(number of bits per 'blah')*N ?

Dirk

```