code: protected T2 getValue(String statsType) {
      if (statsType.equals(CodecUtil.STATS_TYPE_MEAN)) {
        return operations.divide1(valueSum, valueN);
      } else if (statsType.equals(CodecUtil.STATS_TYPE_GEOMETRICMEAN)) {
        return operations.exp2(operations.divide2(valueSumOfLogs, valueN));
      } else if (statsType.equals(CodecUtil.STATS_TYPE_STANDARDDEVIATION)) {
        return operations
            .sqrt2(
                operations.divide2(
                    operations.subtract12(valueSumOfSquares,
                        operations.divide1(
                            operations.product11(valueSum, valueSum), valueN)),
                    (valueN - 1)));
      } else if (statsType.equals(CodecUtil.STATS_TYPE_VARIANCE)) {
        return operations
            .divide2(
                operations
                    .subtract12(valueSumOfSquares,
                        operations.divide1(
                            operations.product11(valueSum, valueSum), valueN)),
                (valueN - 1));
      } else if (statsType.equals(CodecUtil.STATS_TYPE_POPULATIONVARIANCE)) {
        return operations
            .divide2(
                operations
                    .subtract12(valueSumOfSquares,
                        operations.divide1(
                            operations.product11(valueSum, valueSum), valueN)),
                valueN);
      } else if (statsType.equals(CodecUtil.STATS_TYPE_QUADRATICMEAN)) {
        return operations.sqrt2(operations.divide1(valueSumOfSquares, valueN));
      } else {
        return null;
      }
    }
docs: Gets the value.
  
  @param statsType the stats type
  @return the value