def ttr(num_types, num_tokens):
    """Calculate Type-Token Ratio (TTR).

    Used formula:
        .. math::
            TTR = rac{V}{N}

    Parameters:
        num_types (int): Absolute number of types.
        num_tokens (int): Absolute number of tokens.
    """
    return num_types / num_tokens
