Note: Does not work on huge amounts of Integers.
(int... aInts)
| 1198 | |
| 1199 | /** Note: Does not work on huge amounts of Integers. */ |
| 1200 | public static int averageUnsignedInts(int... aInts) { |
| 1201 | if (aInts == null || aInts.length <= 0) return 0; |
| 1202 | long rValue = 0; |
| 1203 | for (int aInt : aInts) rValue += unsignI(aInt); |
| 1204 | return bindInt(rValue / aInts.length); |
| 1205 | } |
| 1206 | |
| 1207 | /** Note: Does not work on huge amounts of Longs. */ |
| 1208 | public static long averageLongs(long... aLongs) { |