EditDistanceCosts

org.specs2.data.EditDistanceCosts
See theEditDistanceCosts companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def insertionDeletionCost(c: T): Int

Attributes

Returns

the cost of an insertion or deletion

def lowerCost(a: T, b: T, del: Int, subst: Int, ins: Int): EditDistanceOp

Attributes

Returns

the lower cost and associated operation of a deletion, substitution or insertion

def substitutionCost(a: T, b: T): Int

Attributes

Returns

the cost of a substitution