def select_bin(bin_list, values):
    """ Select a bin from a list of bins based on an array of values.

    Args:
        bin_list (arr): List of Bin objects
        values (arr): Array of parameters.
            Not that the parameters need to be in the same order that the bins were generated from.

    Returns:
        Bin corresponding to the appropriate parameters. If no bin exists for those parameters, returns None.

    """
    for b in bin_list:
        if b.values_in_bin(values):
            return b
    return None