Interface MathUtils


public interface MathUtils
  • Method Details

    • getMostCommonNumber

      static <N extends Number> N getMostCommonNumber(Collection<N> collection)
    • getMostCommon

      static <N> N getMostCommon(Collection<N> collection)
    • getMostCommon

      static <N> N getMostCommon(BiPredicate<N,​N> compare, Collection<N> collection)
    • getAverage

      static double getAverage(Collection<? extends Number> collection)