Skip to content

Commit 4ce150e

Browse files
committed
Completed documentation
1 parent 560d861 commit 4ce150e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/info/debatty/java/stringsimilarity/KShingling.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public int getK() {
9494
* 20^k x 4Bytes (sizeof(int))
9595
* Computation cost is O(n)
9696
* @param s
97-
* @return
97+
* @return the profile of this string as an array of integers
9898
*/
9999
int[] getArrayProfile(String s) {
100100
ArrayList<Integer> r = new ArrayList<Integer>(shingles.size());
@@ -137,7 +137,7 @@ private static int[] convertIntegers(List<Integer> integers) {
137137
* or qgram distance.
138138
*
139139
* @param s
140-
* @return
140+
* @return the profile of this string, as a StringProfile object
141141
*/
142142
public StringProfile getProfile(String s) {
143143

@@ -157,7 +157,7 @@ public StringSet getSet(String s) {
157157
/**
158158
* Return the number of different n-grams (k-shingles) found by this
159159
* k-shingling instance.
160-
* @return
160+
* @return the total number of different n-grams found by this k-shingling instance
161161
*/
162162
public int getDimension() {
163163
return this.shingles.size();

src/main/java/info/debatty/java/stringsimilarity/LongestCommonSubsequence.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static void main(String[] args) {
4545
* computed as |s1| + |s2| - 2 * |LCS(s1, s2)|
4646
* @param s1
4747
* @param s2
48-
* @return
48+
* @return the LCS distance between strings s1 and s2, computed as |s1| + |s2| - 2 * |LCS(s1, s2)|
4949
*/
5050
public double distance(String s1, String s2) {
5151
return s1.length() + s2.length() - 2 * length(s1, s2);
@@ -56,7 +56,7 @@ public double distance(String s1, String s2) {
5656
* and s2.
5757
* @param s1
5858
* @param s2
59-
* @return
59+
* @return the length of LCS(s1, s2)
6060
*/
6161
protected int length(String s1, String s2) {
6262
/* function LCSLength(X[1..m], Y[1..n])

0 commit comments

Comments
 (0)