The rat as particle filter