@staticmethod
def _from_array_index(index, frame):
    """Map an array index to a hypothesis given a frame of discernment."""
    hypothesis = set()
    for i, s in enumerate(frame):
        if 2 ** i & index:
            hypothesis.add(s)
    return frozenset(hypothesis)
