src/main/java/ch/uzh/ifi/seal/ase/cscc/index/IndexDocument.java
public double normalizedLevenshteinDistanceLineContextToOther(IndexDocument other) {
        String left = concatenate(getLineContext());
        String right = concatenate(other.getLineContext());
        int maxLength = Math.max(left.length(), right.length());
        double lev = LevenshteinDistance.getDefaultInstance().apply(left, right);
        double levNorm = 1 - (lev / maxLength);
        return levNorm;
    }
/**
     * Compares the line context of `this` to `other` using Levenshtein Distance
     *
     * @param other document to compare this one to
     * @return value between [0,1] where
     * 0 means documents' line contexts are completely different,
     * 1 means documents' line contexts are identical
     */
Compares the line context of `this` to `other` using Levenshtein Distance
@param other document to compare this one to
@return value between [0,1] where
0 means documents' line contexts are completely different,
1 means documents' line contexts are identical
Compares the line context of ` this ` to ` other ` using Levenshtein Distance @param other document to compare this one to @return value between [ 0 1 ] where 0 means documents ' line contexts are completely different 1 means documents ' line contexts are identical
public double normalizedLevenshteinDistanceLineContextToOther(IndexDocument other) {
        String left = concatenate(getLineContext());
        String right = concatenate(other.getLineContext());
        int maxLength = Math.max(left.length(), right.length());
        double lev = LevenshteinDistance.getDefaultInstance().apply(left, right);
        double levNorm = 1 - (lev / maxLength);
        return levNorm;
    }
public double normalizedLevenshteinDistanceLineContextToOther ( IndexDocument other ) { String left = concatenate ( getLineContext ( ) ) ; String right = concatenate ( other . getLineContext ( ) ) ; int maxLength = Math . max ( left . length ( ) , right . length ( ) ) ; double lev = LevenshteinDistance . getDefaultInstance ( ) . apply ( left , right ) ; double levNorm = 1 - ( lev / maxLength ) ; return levNorm ; }
Compares the line context of `this` to `other` using Levenshtein Distance
 @param other document to compare this one to
 @return value between [0,1] where
 0 means documents' line contexts are completely different,
 1 means documents' line contexts are identical
Compares the line context of ` this ` to ` other ` using Levenshtein Distance @param other document to compare this one to @return value between [ 0 1 ] where 0 means documents ' line contexts are completely different 1 means documents ' line contexts are identical