src/main/java/eu/digitisation/langutils/TermFrequency.java
public double recall(TermFrequency other) {
        int total = 0;
        int matched = 0;

        for (Map.Entry<String, Integer> entry : other.entrySet()) {
            total += entry.getValue();
            if (this.containsKey(entry.getKey())) {
                ++matched;
            }
        }

        return matched / (double) total;
    }
/**
     *
     * @param other another term frequency vector
     * @return the recall provided by this term frequency vector (rate of words
     * in the other TF matching one in this TF)
     */
@param other another term frequency vector
@return the recall provided by this term frequency vector (rate of words
in the other TF matching one in this TF)
@param other another term frequency vector @return the recall provided by this term frequency vector ( rate of words in the other TF matching one in this TF )
public double recall(TermFrequency other) {
        int total = 0;
        int matched = 0;
        for (Map.Entry<String, Integer> entry : other.entrySet()) {
            total += entry.getValue();
            if (this.containsKey(entry.getKey())) {
                ++matched;
            }
        }
        return matched / (double) total;
    }
public double recall ( TermFrequency other ) { int total = 0 ; int matched = 0 ; for ( Map . Entry < String , Integer > entry : other . entrySet ( ) ) { total += entry . getValue ( ) ; if ( this . containsKey ( entry . getKey ( ) ) ) { ++ matched ; } } return matched / ( double ) total ; }
@param other another term frequency vector
 @return the recall provided by this term frequency vector (rate of words
 in the other TF matching one in this TF)
@param other another term frequency vector @return the recall provided by this term frequency vector ( rate of words in the other TF matching one in this TF )