You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by pmouawad <gi...@git.apache.org> on 2017/05/08 17:20:49 UTC

[GitHub] jmeter issue #296: Bug 61078 - Percentile calculation error

Github user pmouawad commented on the issue:

    https://github.com/apache/jmeter/pull/296
  
    Thanks for your patch.
    
    This test fails for me:
    `    @Test
        public void testPercentagePointBug() throws Exception {
            long values[] = new long[] {
                10L,9L,5L,6L,1L,3L,8L,2L,7L,4L
            };
            DescriptiveStatistics statistics = new DescriptiveStatistics();
            for (long l : values) {
                calc.addValue(l);
                statistics.addValue(l);
            }
            assertEquals(statistics.getPercentile(90), 
                    calc.getPercentPoint(0.9), 0.5);
        }`
    
    with:
    
    `java.lang.AssertionError: expected:<9.9> but was:<9.0>`
    
    Does it sounds ok for you ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---