Package org.rioproject.watch

Examples of org.rioproject.watch.Statistics.removeValue()


        Statistics stat = new Statistics(v);

        while (stat.count() > 0) {
            int i = (int) (Math.random() * stat.count());
            stat.removeValue(i);
            v.remove(i);
            Assert.assertEquals(v, stat.getValues());
        }
        assertClean(stat);

View Full Code Here


        }
        assertClean(stat);

        v = asList(new double[]{1, 2, 3, 4, 5});
        stat.setValues(v);
        stat.removeValue(-1);
        stat.removeValue(5);
        Assert.assertEquals(v, stat.getValues());
    }

    /**
 
View Full Code Here

        assertClean(stat);

        v = asList(new double[]{1, 2, 3, 4, 5});
        stat.setValues(v);
        stat.removeValue(-1);
        stat.removeValue(5);
        Assert.assertEquals(v, stat.getValues());
    }

    /**
     * Tests the <code>removeValues(Double, Double)</code> method.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.