Object GollumMath.Companion
-
- All Implemented Interfaces:
public class GollumMath.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static GollumMath.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final List<Integer>
removeExtremeValues(List<Integer> data)
Return sorted array. 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. final Integer
gcd(Integer n1, Integer n2)
-
-
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)
-
-
-
-