Source: https://matheo.uliege.be/bitstream/2268.2/3688/4/TFE_CUBAGE.pdf