Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An efficient algorithm for calculating frequencies?

I have a data set of frequency samples (for example, bpm, or any other measure/time), taken at regular time intervals (say, every 5 minutes). I would like to find the smallest set of time intervals with the following properties:

  • The intervals cover the entire original data-set
  • No time interval has an average frequency below a given threshold

Are there any standard algorithms for figuring this sort of information out?

like image 962
blueberryfields Avatar asked Jun 28 '26 02:06

blueberryfields


1 Answers

Unless I am mistaken:

  • If the average of the whole thing is above your threshold, then the single interval covering the entire set is the solution
  • If the average of the entire set is below your threshold, there is no solution.
like image 104
Xodarap Avatar answered Jul 01 '26 00:07

Xodarap



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!