src/main/java/ch/uzh/ifi/seal/ase/cscc/index/IndexDocument.java
public double normalizedLongestCommonSubsequenceLengthOverallContextToOther(IndexDocument other) {
        String left = concatenate(getOverallContext());
        String right = concatenate(other.getOverallContext());
        int maxLength = Math.max(left.length(), right.length());
        double lcs = new LongestCommonSubsequence().apply(left, right);
        double lcsNorm = lcs / maxLength;
        return lcsNorm;
    }
/**
     * Compares the overall context of `this` to `other` using LCS (Longest Common Subsequence)
     *
     * @param other document to compare this one to
     * @return value between [0,1] where
     * 0 means documents' overall contexts are completely different,
     * 1 means documents' overall contexts are identical
     */
Compares the overall context of `this` to `other` using LCS (Longest Common Subsequence)
@param other document to compare this one to
@return value between [0,1] where
0 means documents' overall contexts are completely different,
1 means documents' overall contexts are identical
Compares the overall context of ` this ` to ` other ` using LCS ( Longest Common Subsequence ) @param other document to compare this one to @return value between [ 0 1 ] where 0 means documents ' overall contexts are completely different 1 means documents ' overall contexts are identical
public double normalizedLongestCommonSubsequenceLengthOverallContextToOther(IndexDocument other) {
        String left = concatenate(getOverallContext());
        String right = concatenate(other.getOverallContext());
        int maxLength = Math.max(left.length(), right.length());
        double lcs = new LongestCommonSubsequence().apply(left, right);
        double lcsNorm = lcs / maxLength;
        return lcsNorm;
    }
public double normalizedLongestCommonSubsequenceLengthOverallContextToOther ( IndexDocument other ) { String left = concatenate ( getOverallContext ( ) ) ; String right = concatenate ( other . getOverallContext ( ) ) ; int maxLength = Math . max ( left . length ( ) , right . length ( ) ) ; double lcs = new LongestCommonSubsequence ( ) . apply ( left , right ) ; double lcsNorm = lcs / maxLength ; return lcsNorm ; }
Compares the overall context of `this` to `other` using LCS (Longest Common Subsequence)
 @param other document to compare this one to
 @return value between [0,1] where
 0 means documents' overall contexts are completely different,
 1 means documents' overall contexts are identical
Compares the overall context of ` this ` to ` other ` using LCS ( Longest Common Subsequence ) @param other document to compare this one to @return value between [ 0 1 ] where 0 means documents ' overall contexts are completely different 1 means documents ' overall contexts are identical