@staticmethod
def _to_array_index(hypothesis, frame):
    """Map a hypothesis to an array index given a frame of discernment."""
    index = 0
    for i, s in enumerate(frame):
        if s in hypothesis:
            index += 2 ** i
    return index
