Distance Functions#

distance_trapz(prob1, prob2, times)

Calculates the area between two curves estimated by the trapezoidal rule :param prob1: The first curve :type prob1: 1d array :param prob2: The second curve :type prob2: 1d array :param times: The times at which the curves are evaluated :type times: 1d array

distance_euler(prob1, prob2, times)

Calculates the area between two curves estimated by the euler rule :param prob1: The first curve :type prob1: 1d array :param prob2: The second curve :type prob2: 1d array :param times: The times at which the curves are evaluated :type times: 1d array

distance_euclidean(prob1, prob2[, times])

Calculates the euclidean distance between two curves at respective timepoints

distance_cross_entropy(prob1, prob2[, times])

Calculates the cross entropy between two curves at respective timepoints

distance_cross_entropy_from_mean(prob1, prob2)

The cross entropy between two curves and the mean of the two curves

distance_kl(prob1, prob2[, times])

KL divergence of second probability from first probability

distance_shannon_jensen(prob1, prob2[, times])

The symmetric version of KL divergence

distance_max(prob1, prob2[, times])

The maximum difference between two curves