def average_unit_size(cfg):
    """
    Compute the overall average unit size, combining the unit mix
    and sizes per unit
    """

    sizes = 0
    for use_type, mix in \
            zip(cfg["use_mix"]["use_types"], cfg["use_mix"]["mix"]):

        sizes += cfg["use_types"][use_type]["size"] * mix

    return sizes