Package com.inadco.hbl.math.aggregators

Examples of com.inadco.hbl.math.aggregators.OnlineExpRateSummarizer


    }

    static OnlineExpRateSummarizer createExpRateSum(Properties props, boolean bareInstance) {

        if (bareInstance)
            return new OnlineExpRateSummarizer();

        double dt;
        double m = OnlineExpRateSummarizer.DEFAULT_HISTORY_MARGIN;

        if (props.containsKey("m"))
            m = Double.parseDouble(props.getProperty("m"));

        Validate.isTrue(props.containsKey("dt"), "dt parameter is required for exp rate summarizer");
        dt = Double.parseDouble(props.getProperty("dt"));

        return new OnlineExpRateSummarizer(dt, m);
    }
View Full Code Here

TOP

Related Classes of com.inadco.hbl.math.aggregators.OnlineExpRateSummarizer

Copyright © 2018 www.massapicom. 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.