propeller.tools.metrics

compute-next-row

(compute-next-row prev-row current-element other-seq pred)

computes the next row using the prev-row current-element and the other seq

hamming-distance

(hamming-distance seq1 seq2)

Calculates the Hamming distance between two sequences, including strings.

levenshtein-distance

(levenshtein-distance a b & {p :predicate, :or {p =}})

Levenshtein Distance - http://en.wikipedia.org/wiki/Levenshtein_distance In Information Theory and Computer Science, the Levenshtein distance is a metric for measuring the amount of difference between two sequences. This is a functional implementation of the Levenshtein edit distance with as little mutability as possible. Still maintains the O(nm) guarantee.

mean

(mean coll)

Returns the mean of a collection.

median

(median coll)

Returns the median of a collection.

sequence-similarity

(sequence-similarity seq1 seq2)

Returns a number between 0 and 1, indicating how similar the sequences are as a normalized, inverted Levenshtein distance, with 1 indicating identity and 0 indicating no similarity.