R/calculate_intensity.R: removed deprecated functions and some minor cleaning

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>