Mean absolute error between two TPD probability distributions.
MAE_TPD <- function(x, y) { diffXY <- abs(x - y) MAE <- mean(diffXY) return(MAE) }