https://9lib.org/document/qo5jx5vm-averaging-histogram-computer-digital-library-silesian-university-technology.html