wiggieOne
Electrical
- Jul 30, 2006
- 1
i need to find the step size required to get 1 bit of entropy from a signal, in order to code it with 1 bit per sample.
this figure should clear some questions:
so what i did is start from very large step size R and divide it by 2, calculate the entropy and check if it is under 1.001 until i pass the 1.001 mark. Then i take a very small step size L, multiply it by 2 until the entropy is greater than 0.999 bits. I created two while loops for each L and R step sizes. The problem is, I get two step sizes which give an entropie close to one, but not close enough. How would I do it, so that the entropie gets closer to one, that is, the stepsizes geta adjusted so that the entropie is closer to 1. I'm perplexed.
I'm using this method of division by 2 because I was told to use it, I had it explained up to the point where the values pass their bounds (1.001 and 0.999), after that I was left with a blank.
If somebody has a better method or any suggestions, I would greatly appreciate it. Thank you,
Paul
this figure should clear some questions:
so what i did is start from very large step size R and divide it by 2, calculate the entropy and check if it is under 1.001 until i pass the 1.001 mark. Then i take a very small step size L, multiply it by 2 until the entropy is greater than 0.999 bits. I created two while loops for each L and R step sizes. The problem is, I get two step sizes which give an entropie close to one, but not close enough. How would I do it, so that the entropie gets closer to one, that is, the stepsizes geta adjusted so that the entropie is closer to 1. I'm perplexed.
I'm using this method of division by 2 because I was told to use it, I had it explained up to the point where the values pass their bounds (1.001 and 0.999), after that I was left with a blank.
If somebody has a better method or any suggestions, I would greatly appreciate it. Thank you,
Paul