Module Cassiopee
In: lib/cassiopee.rb

Methods

Classes and Modules

Class Cassiopee::Crawler
Class Cassiopee::CrawlerCache

Public Instance methods

Calculate the edit or hamming distance between String and pattern Extend a String Return -1 if max is reached

Calculate the edit or hamming distance between String and pattern Extend a String Return -1 if max is reached

Calculate number of substitution between string and pattern Extend a String Return -1 if max is reached

Compute Hamming distance but using a mapping matrix of alphabet ambiguity

Calculate the edit distance between string and pattern Extend a String Return -1 if max is reached

Compute Levenshtein distance but using a mapping matrix of alphabet ambiguity Code comes from Text gem, Text::Levenshtein.distance, adapted for ambiguity comparison

checks if 2 chars are equal with ambiguity rules

  • ambigous is a Hash of char/Array of char mapping

[Validate]