You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The damping ratio estimation is done by first finding the bandwidth at half-power from the PSD. Currently, the code calculates half power using the following formula:
I think the sqrt(2) term is correct if we are working with amplitudes, for example when measuring voltage in electronic systems. However, since the PSD calculation precedes this function, we are working with power spectral density instead of accelerometer amplitudes. This is a plot of power, which is amplitude squared. Therefore, it should be divided by 2 instead.
Another way to see it, deriving from pure mathematics and definition, "half_power = max_power / 2"
Here's an illustration of an example that I found online. Figure 5.3 shows acceleration, figure 5.4 shows PSD of acceleration (note the unit), and figure 5.5 shows the half-power bandwidth estimation.
K-Shake&Tune module branch
Version
v4.1.0-1-g66f5e32e
Describe the bug and expected behavior
The damping ratio estimation is done by first finding the bandwidth at half-power from the PSD. Currently, the code calculates half power using the following formula:
https://github.com/Frix-x/klippain-shaketune/blob/main/shaketune/helpers/common_func.py#L148
I think the sqrt(2) term is correct if we are working with amplitudes, for example when measuring voltage in electronic systems. However, since the PSD calculation precedes this function, we are working with power spectral density instead of accelerometer amplitudes. This is a plot of power, which is amplitude squared. Therefore, it should be divided by 2 instead.
Another way to see it, deriving from pure mathematics and definition, "half_power = max_power / 2"
Here's an illustration of an example that I found online. Figure 5.3 shows acceleration, figure 5.4 shows PSD of acceleration (note the unit), and figure 5.5 shows the half-power bandwidth estimation.
https://endaq.com/pages/power-spectral-density
Additional information and klippy.log
No response
The text was updated successfully, but these errors were encountered: