Package com.inadco.hbl.math.aggregators

Examples of com.inadco.hbl.math.aggregators.OnlineCannyRateSummarizer.complement()


        sum2.update(5, 5);

        OnlineCannyRateSummarizer combined = IOUtil.tryClone(sum1);
        combined.combine(sum2);
        OnlineCannyRateSummarizer compl1 = IOUtil.tryClone(sum);
        compl1.complement(sum1, false);
        OnlineCannyRateSummarizer compl2 = IOUtil.tryClone(sum);
        compl2.complement(sum2, false);

        Assert.assertTrue(Math.abs(sum.getValue() - combined.getValue()) < PREC);
        Assert.assertTrue(Math.abs(sum2.getValue() - compl1.getValue()) < PREC);
View Full Code Here


        OnlineCannyRateSummarizer combined = IOUtil.tryClone(sum1);
        combined.combine(sum2);
        OnlineCannyRateSummarizer compl1 = IOUtil.tryClone(sum);
        compl1.complement(sum1, false);
        OnlineCannyRateSummarizer compl2 = IOUtil.tryClone(sum);
        compl2.complement(sum2, false);

        Assert.assertTrue(Math.abs(sum.getValue() - combined.getValue()) < PREC);
        Assert.assertTrue(Math.abs(sum2.getValue() - compl1.getValue()) < PREC);
        Assert.assertTrue(Math.abs(sum1.getValue() - compl2.getValue()) < PREC);
    }
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.