| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final double | Returns: The computed n-gram distance in the range [0, 1]The first string to compare. s0, final String The second string to compare. s1)Implements info. Compute n-gram distance. |
| DEFAULT_N | back to summary |
|---|---|
| private static final int DEFAULT_N | |
| n | back to summary |
|---|---|
| private final int n | |
| NGram | back to summary |
|---|---|
| public NGram(final int n) Instantiate with given value for n-gram length. | |
| NGram | back to summary |
|---|---|
| public NGram() Instantiate with default value for n-gram length (2). | |
| distance | back to summary |
|---|---|
| public final double distance(final String s0, final String s1) Implements info. Compute n-gram distance.
| |