Examples of OnlineExpAvgSummarizer


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

    }

    static OnlineExpAvgSummarizer createExpAvgSum(Properties props, boolean bareInstance) {

        if (bareInstance)
            return new OnlineExpAvgSummarizer();

        double dt;
        double m = OnlineExpAvgSummarizer.DEFAULT_HISTORY_MARGIN;

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

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

        return new OnlineExpAvgSummarizer(dt, m);

    }
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.