Open DK96-OS opened 2 years ago
ByteArrayExt
provides a sum method that uses a long
return type.
This method is now implemented by the Array Statistics calculateMean
functions, as of #55.
LongArrayExt
provides a sum method that uses BigInteger
return type.
This method is now implemented by Array Statistics calculateMean
function.
The Guava library can be used.
Methods like checkedAddition
are nice, but will they affect performance?
Array Statistics contains functions that calculate the mean and standard deviation of Number Array types.
The Calculate Mean function of ByteArray uses a sum method with an Int return type, which will overflow with enough elements.
_Originally posted by @DK96-OS in https://github.com/DK96-OS/MathTools/pull/32#discussion_r794927783_