private void finishComputing() {

        long sumUniqTokens = tokensA.getTotalUniqueTokens() + tokensB.getTotalUniqueTokens();

        diceCoefficient = (double) diceCoefficientNum / (double) sumUniqTokens;
        overlap =
                (float) overlapNum / (double) (tokensA.getTotalTokens() + tokensB.getTotalTokens());

    }
Computes some corpus contrast statistics.
<p>
Not thread safe.
tika-eval/tika-eval-core/src/main/java/org/apache/tika/eval/core/tokens/TokenContraster.java