Binary package “calc-stats” in ubuntu bionic

run standard statistics operations on a file or stdin using awk

 This package provides a number of useful utilities which can efficiently
 perform statistic calculations on files or standard input containing
 numbers (integers or floats). This includes: min, max, mean, avg, median,
 mode, stdev, histogram, summate