-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compute_expected_counts
gives incorrect values for HANSWT ext
#88
Comments
veenstrajelmer
changed the title
Jun 20, 2024
compute_expected_counts
give incorrect values for HANSWT extcompute_expected_counts
gives incorrect values for HANSWT ext
This was referenced Jun 20, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The expected counts are higher than the actual counts for HANSWT extremes, even though there are no nans or missing timesteps. This is because the frequency in the expected counts computation is based on the median instead of the mean. For HOEKVHLD this goes fine since the expected values are lower than the actual, but for HANSWT the median freq results in expected values higher than the actual number of values.
Gives:
Todo:
.floor()
on the expected counts. Issue: we provide series of values to function, so excluding hwlw code.compute_expected_counts()
on hw only separately incalc_tidalindicators_HWLW()
. Also do this incalc_havengetallen()
compute_expected_counts
has an edgecase for months/years with only a value on the first and last timestep, derived frequency will be 15/183 days days and this will result in 2 expected counts. This causes the mean to be seen as valid, while it is not.test_calc_wltidalindicators
The text was updated successfully, but these errors were encountered: