Cal stats number.

@param statsString       the stats string
@param summaryStatistics the summary statistics
@return the number
186931
public static Number calStats(String statsString,
            IntSummaryStatistics summaryStatistics) {
        return StatsField.valueOfAlias(statsString).calStats(summaryStatistics);
    }
243667
public String statistics() {
        DecimalFormat formatter = new DecimalFormat("#,###");
        DecimalFormat floatFormatter = new DecimalFormat("#,###.00");
        return String.format("min %s | avg %s | max %s | stddev %s msgs",
                formatter.format(minRate()), formatter.format(avgRate()),
                formatter.format(maxRate()), floatFormatter.format(stdDev()));
    }
705970
public static String getTranslatedStatsName(String statsName, String statsType, Locale locale) {
        String[] _stats = parseStatsType(statsType);
        for (int i = 0; i < _stats.length; i++) {
            PmiModuleConfig cfg = getTranslatedStatsConfig(_stats[i], locale);
            if (cfg != null) {
                NLS aNLS = getNLS(locale, cfg.getResourceBundle(), statsType);
                if (aNLS != null) {
                    String trName;
                    try {
                        trName = aNLS.getString(statsName);
                    } catch (MissingResourceException mre) {
                        trName = statsName;
                    }

                    if (trName != null)
                        return trName;
                }
            }
        }
        return statsName;
    }
367357
public static IntMoments of(final IntMomentStatistics statistics) {
		return new IntMoments(
			statistics.getCount(),
			statistics.getMin(),
			statistics.getMax(),
			statistics.getSum(),
			statistics.getMean(),
			statistics.getVariance(),
			statistics.getSkewness(),
			statistics.getKurtosis()
		);
	}
482254
public static String getTranslatedStatsName(String statsName, String statsType) {
        return getTranslatedStatsName(statsName, statsType, Locale.getDefault());
    }
254190
private String parseParamsForStatistics(ParameterSet params, JSONObject obj) throws Exception
    {
        if ((params.toArray().length < 1) || (params.toArray().length > 2)) {
            return "Incorrect number of arguments to @Statistics (expects 2, received " +
                    params.toArray().length + ")";
        }
        Object first = params.toArray()[0];
        if (!(first instanceof String)) {
            return "First argument to @Statistics must be a valid STRING selector, instead was " +
                    first;
        }
        String subselector = (String)first;
        try {
            StatsSelector s = StatsSelector.valueOf(subselector.toUpperCase());
            subselector = s.name();
        }
        catch (Exception e) {
            return "First argument to @Statistics must be a valid STRING selector, instead was " +
                    first;
        }

        boolean interval = false;
        if (params.toArray().length == 2) {
            interval = ((Number)(params.toArray()[1])).longValue() == 1L;
        }
        obj.put("subselector", subselector);
        obj.put("interval", interval);

        return null;
    }
393640
public ArrayList<OvhChartSerie<OvhChartTimestampValue>> serviceName_statistics_GET(String serviceName, OvhStatisticsPeriodEnum period, OvhStatisticsTypeEnum type) throws IOException {
		String qPath = "/hosting/web/{serviceName}/statistics";
		StringBuilder sb = path(qPath, serviceName);
		query(sb, "period", period);
		query(sb, "type", type);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t6);
	}
833879
public static final Function<Double,String> toPercentStr() {
        return (Function<Double,String>)((Function)FnNumber.toPercentStr());
    }
1123687
public void statistic(InstanceSet instSet){	
		int numSamples = instSet.size();
		for(int i=0;i<numSamples;i++){
			if(i%1000==0)
				System.out.println((i+0.0)/numSamples);
			Instance inst=instSet.get(i);
			oneStepStatistic(inst);
		}
	}
1262447
public static String statsTypeToModuleID(String statsType) {
        if (statsType != null) {
            int hashPos = statsType.indexOf('#');
            if (hashPos > 0)
                return statsType.substring(0, hashPos);
            else
                return statsType;
        } else
            return null;
    }
1001589
public SearchResult withStats(java.util.Map<String, FieldStats> stats) {
        setStats(stats);
        return this;
    }
98723
@Override
	public FileBaseStatistics getStatistics(BaseStatistics cachedStats) throws IOException {
		final FileBaseStatistics stats = super.getStatistics(cachedStats);
		return stats == null ? null : 
			new FileBaseStatistics(stats.getLastModificationTime(), stats.getTotalInputSize(), this.recordLength);
	}
279501
public String getStatistics() {
        StringBuilder sb = new StringBuilder();
        
        for(String key : stats.keySet()) {
            sb.append(key);
            sb.append(": ");
            sb.append(stats.get(key));
            sb.append("\n");
        }
        
        return sb.toString();
    }
240900
@Override
  public MtasDataItemNumberComparator<Long> getCompareValue1() {
    switch (sortType) {
    case CodecUtil.STATS_TYPE_SUM:
      return new MtasDataItemNumberComparator<Long>(valueSum, sortDirection);
    case CodecUtil.STATS_TYPE_MAX:
      return new MtasDataItemNumberComparator<Long>(valueMax, sortDirection);
    case CodecUtil.STATS_TYPE_MIN:
      return new MtasDataItemNumberComparator<Long>(valueMin, sortDirection);
    case CodecUtil.STATS_TYPE_SUMSQ:
      return new MtasDataItemNumberComparator<Long>(valueSumOfSquares,
          sortDirection);
    default:
      return null;
    }
  }
285525
private static long invokeStatisticsMethod(Object statistics, String methodName) {
		try {
			// getInMemoryHits, getCacheHits et getCacheMisses existent en v1.2.1 et v1.2.3
			// mais avec int comme résultat et existent depuis v1.2.4 avec long comme résultat
			// donc on cast en Number et non en Integer ou en Long
			final Number result = (Number) Statistics.class.getMethod(methodName, (Class<?>[]) null)
					.invoke(statistics, (Object[]) null);
			return result.longValue();
		} catch (final NoSuchMethodException e) {
			throw new IllegalArgumentException(e);
		} catch (final InvocationTargetException e) {
			throw new IllegalStateException(e.getCause());
		} catch (final IllegalAccessException e) {
			throw new IllegalStateException(e);
		}
	}
1142335
public com.google.api.ads.admanager.axis.v201805.Stats getStats() {
        return stats;
    }
830016
public static Number calStats(String statsString, LongStream numberStream) {
        return StatsField.valueOfAlias(statsString).calStats(numberStream);
    }