Note: Does not work on huge amounts of Bytes.
(short... aShorts)
| 1178 | |
| 1179 | /** Note: Does not work on huge amounts of Bytes. */ |
| 1180 | public static short averageShorts(short... aShorts) { |
| 1181 | if (aShorts == null || aShorts.length <= 0) return 0; |
| 1182 | return (short)(sum(aShorts) / aShorts.length); |
| 1183 | } |
| 1184 | |
| 1185 | /** Note: Does not work on huge amounts of Shorts. */ |
| 1186 | public static short averageUnsignedShorts(short... aShorts) { |