jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmouawad <...@git.apache.org>
Subject [GitHub] jmeter issue #296: Bug 61078 - Percentile calculation error
Date Mon, 08 May 2017 17:20:49 GMT
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.
---

Mime
View raw message