Exemplo n.º 1
0
        protected override void AddQuantileEsimators()
        {
            Func <IQuantileEstimator <long> > longSupplier = () => QuantileEstimators
                                                             .NewClassicEstimator(LongComparer.DEFAULT, LongCalculator.DEFAULT);

            _estimators[typeof(long)] = QuantileEstimators.NewTimeWindowEstimator(longSupplier,
                                                                                  5 * 1000, 1 * 1000);

            Func <IQuantileEstimator <int> > intSupplier = () => QuantileEstimators
                                                           .NewClassicEstimator(IntComparer.DEFAULT, IntCalculator.DEFAULT);

            _estimators[typeof(int)] = QuantileEstimators.NewTimeWindowEstimator(intSupplier,
                                                                                 5 * 1000, 1 * 1000);
        }
 protected override void AddQuantileEsimators()
 {
     _estimators[typeof(long)] =
         QuantileEstimators.NewClassicEstimator <long>(LongComparer.DEFAULT, LongCalculator.DEFAULT);
     _estimators[typeof(int)] = QuantileEstimators.NewClassicEstimator <int>(IntComparer.DEFAULT, IntCalculator.DEFAULT);
 }