Generic function for the computation of (minimal) asymmetric total variation distance of two distributions