Note: Does not work on huge amounts of Bytes.
(byte... aBytes)
| 1164 | public static class Code { |
| 1165 | /** Note: Does not work on huge amounts of Bytes. */ |
| 1166 | public static byte averageBytes(byte... aBytes) { |
| 1167 | if (aBytes == null || aBytes.length <= 0) return 0; |
| 1168 | return (byte)(sum(aBytes) / aBytes.length); |
| 1169 | } |
| 1170 | |
| 1171 | /** Note: Does not work on huge amounts of Bytes. */ |
| 1172 | public static byte averageUnsignedBytes(byte... aBytes) { |