|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.Levenshtein
public final class Levenshtein
Levenshtein implementation, based on "Levenshtein [1965], Binary codes capable of correcting spurious insertions and deletions of ones".
| Constructor Summary | |
|---|---|
Levenshtein()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
similar(byte[] token,
byte[] sub,
int err)
Compares two character arrays for similarity. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Levenshtein()
| Method Detail |
|---|
public boolean similar(byte[] token,
byte[] sub,
int err)
token - token to be comparedsub - second token to be comparederr - number of allowed errors; dynamic calculation if value is 0
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||