public class EditDistance
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double[][] |
score |
Constructor and Description |
---|
EditDistance() |
EditDistance(boolean allowTranspose) |
Modifier and Type | Method and Description |
---|---|
protected double |
best() |
protected double |
better(double x,
double y) |
protected void |
clear(int sourceLength,
int targetLength) |
protected double |
combine(double x,
double y) |
protected double |
deleteCost(java.lang.Object o) |
protected double |
insertCost(java.lang.Object o) |
static void |
main(java.lang.String[] args) |
double |
score(java.lang.Object[] source,
java.lang.Object[] target) |
double |
score(java.lang.String sourceStr,
java.lang.String targetStr) |
protected double |
substituteCost(java.lang.Object source,
java.lang.Object target) |
protected double |
unit() |
protected double |
worst() |
public EditDistance()
public EditDistance(boolean allowTranspose)
protected void clear(int sourceLength, int targetLength)
protected double best()
protected double worst()
protected double unit()
protected double better(double x, double y)
protected double combine(double x, double y)
protected double insertCost(java.lang.Object o)
protected double deleteCost(java.lang.Object o)
protected double substituteCost(java.lang.Object source, java.lang.Object target)
public double score(java.lang.Object[] source, java.lang.Object[] target)
public double score(java.lang.String sourceStr, java.lang.String targetStr)
public static void main(java.lang.String[] args)