Skip to content

Conversation

@PaulWessel
Copy link
Member

See forum post for background on gmtbinstat problem (bug). In what appears to be a copy/paste error, the calculation taking an average (media if n is even) and quantile (weighted average if quantile is not exactly on a single value) then the index of the second array value was junk. Fixing this and of course q95 is always > median; well >= in the case we only have a sample of size 1.

See forum post for background. In what appears to be a copy/paste error, the calculation taking an average (media if n is even) and quantile (weighted average if quantile is not exactly on a single value) then the index of the second array value was junk.  Fixing this and of course q95 is always > median; well >= in the case we only have a sample of size 1.
@PaulWessel PaulWessel added the bug Something isn't working label Dec 29, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Dec 29, 2023
@PaulWessel PaulWessel self-assigned this Dec 29, 2023
@PaulWessel PaulWessel merged commit 7b7fb09 into master Dec 29, 2023
@PaulWessel PaulWessel deleted the stat-mixup branch December 29, 2023 14:01
PaulWessel added a commit that referenced this pull request Dec 29, 2023
THe bugfix in #8243 meant the plots change a big, now with correct values for median andq95, etc.
PaulWessel added a commit that referenced this pull request Dec 29, 2023
THe bugfix in #8243 meant the plots change a big, now with correct values for median andq95, etc.
weiji14 added a commit to GenericMappingTools/pygmt that referenced this pull request Sep 16, 2025
weiji14 added a commit to GenericMappingTools/pygmt that referenced this pull request Sep 16, 2025
…#4087)

GMT 6.4 gives different results to GMT 6.5+ for binstats quantile statistic,
xref GenericMappingTools/gmt#8243
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants