Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Do non-integer sampling frequencies (like 1/30 Hz) cause problems?

0
Posted

Do non-integer sampling frequencies (like 1/30 Hz) cause problems?

0

Not necessarily. Good viewers will count samples and compare these with “number of samples in a datarecord” and in this way count how many datarecords have been passed (and consequently how many “duration’s of a datarecord”). Because this is all integer computation, there are no round-off errors! This is why EDF recommends the “duration of a datarecord” to be an integer number of seconds. In the 1/30 Hz example, “duration of a datarecord” and “number of samples in a datarecord” can be 30 and 1, respectively. Or 3600 and 120, respectively. However, if a sampling frequency is 999.98Hz (for instance due to small inaccuracy of the ADC clock), ‘integer EDF’ would be possible using datarecords of 50000s and 49999 samples of each signal in this datarecord. Even if only one signal is in the file, there would be more than 61440 bytes in a datarecord. The official specs say that in that case the duration should be a float value less than 1s. This will inevitably cause a small round-off error in

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123