import numpy as np hallway = np.array([1, 1, 0, 0, 0, 0, 0, 0, 1, 0]) belief = np.array([0.1] * 10) belief[hallway ==1] *= 3 belief / sum(belief)
import numpy as np hallway = np.array([1, 1, 0, 0, 0, 0, 0, 0, 1, 0]) belief = np.array([0.1] * 10) belief[hallway ==1] *= 3 belief / sum(belief)