User:Contribution/Chanofreq Project: Difference between revisions
Contribution (talk | contribs) No edit summary |
Contribution (talk | contribs) |
||
| Line 78: | Line 78: | ||
* '''bitfreq''': Specifies the bit depth for the positive integer representation. | * '''bitfreq''': Specifies the bit depth for the positive integer representation. | ||
Frequencies are encoded | Frequencies are encoded according to the following formula: parser_frequency = int(((FREQUENCY - minfreq) * (2 ** bitfreq) / (maxfreq - minfreq)) + 0.5) | ||
Each unit increase in the encoded integer corresponds to a frequency increment of (maxfreq - minfreq) / 2^bitfreq. | Each unit increase in the encoded integer corresponds to a frequency increment of (maxfreq - minfreq) / 2^bitfreq. | ||