The current Frequence Calculatio ist quite Noisy.
At current state the Frequence ist calculated only by it's current state and the last state.
False predictions on the state have a huge impact and so the Frequency is most of the time wrong
Some improvements
There are some improvements we could make.
The first would be to calculate the moving average (See Color detection) and clipping to the next reasonable Frequency.
Another approach would be to use autocorrelation for this
The current Frequence Calculatio ist quite Noisy. At current state the Frequence ist calculated only by it's current state and the last state.
False predictions on the state have a huge impact and so the Frequency is most of the time wrong
Some improvements There are some improvements we could make. The first would be to calculate the moving average (See Color detection) and clipping to the next reasonable Frequency. Another approach would be to use autocorrelation for this