change return type of estimator, use double instead of int. be consistent with timer.