Object GollumMath.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • removeExtremeValues

         final List<Integer> removeExtremeValues(List<Integer> data)

        Return sorted array. Remove extreme values hosted in first 1% and last 1% of the array. array splitted like 98%1%

        return only 98%

      • getExtremeValues

         final IntRange getExtremeValues(List<Integer> data)

        Return extreme values hosted in the list list is sorted then the first 1% and last 1% are considered as extremes values. C-98%R-1% so the last element of array L is considered as a extrem value, same for the first element of array R We return IntRange(LL.size - 1, R0)