LucaCappelletti94/dictances

View on GitHub
dictances/intersection_total_variation.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
"""Return the total distance beetween the intersection of a and b."""
from .intersection_nth_variation import intersection_nth_variation
from typing import Dict

def intersection_total_variation(a: Dict, b: Dict, overlap: bool=False)->float:
    """Return the total distance beetween the intersection of a and b."""
    return intersection_nth_variation(a, b, 1, overlap)