An algorithm for computing the modulus-metric distance between two spike trains, as described in the following publication:
Rusu, C. V., & Florian, R. V. (2014). A new class of metrics for spike trains. Neural Computation, 26(2), 306–348. doi:10.1162/NECO_a_00545