User:Contribution/Chanofreq Project: Difference between revisions

Contribution (talk | contribs)
Contribution (talk | contribs)
Line 22: Line 22:
{{todo|Considerations for Frequency Representation|inline=1|comment=Consider to use a different data type for representing frequencies. Instead of a 64-bit floating-point number, a 32-bit positive integer could be used. Here are two possible approaches:
{{todo|Considerations for Frequency Representation|inline=1|comment=Consider to use a different data type for representing frequencies. Instead of a 64-bit floating-point number, a 32-bit positive integer could be used. Here are two possible approaches:
* Option 1: The 32-bit positive integer represents the frequency in Hertz multiplied by 10^5. This would provide a frequency range from 0.00000 Hz to 42949.67295 Hz with a precision of exactly five decimal places.
* Option 1: The 32-bit positive integer represents the frequency in Hertz multiplied by 10^5. This would provide a frequency range from 0.00000 Hz to 42949.67295 Hz with a precision of exactly five decimal places.
* Option 2: The 32-bit positive integer represents the frequency in Hertz multiplied by 2×10^5. This would cover a frequency range from 0.000000 Hz to 21474.836475 Hz, with a precision of five decimal places and an additional decimal place that must be either 0 or 5.
* '''Option 2: The 32-bit positive integer represents the frequency in Hertz multiplied by 2×10^5. This would cover a frequency range from 0.000000 Hz to 21474.836475 Hz, with a precision of five decimal places and an additional decimal place that must be either 0 or 5.'''
These alternatives offer more efficient data storage while preserving the necessary precision for frequency values. They result in consistent minimum time for phase error whatever the frequency.  
These alternatives offer more efficient data storage while preserving the necessary precision for frequency values. They result in consistent minimum time for phase error whatever the frequency.  
* Option 1: 1 phase error occurs every 2.3 days at worst.
* Option 1: 1 phase error occurs every 2.3 days at worst.
* Option 2: 1 phase error occurs every 4.6 days at worst. Better adapted to human hearing range, option 2 is the most efficient.}}
* '''Option 2: 1 phase error occurs every 4.6 days at worst. Better adapted to human hearing range, option 2 is the most efficient.'''}}


Commands can be separated by a semicolon (';') or a newline.
Commands can be separated by a semicolon (';') or a newline.