}
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);
}