예제 #1
0
 def slot(self):
     self.xt = {arm: disturb(self.x[arm], self.v) for arm in self.arms}
     self.u, self.v = random.sample(self.G.nodes(), 2)
     return self.xt if self.reachable() else self.slot()
예제 #2
0
 def slot(self):
     #self.xt = self.x
     self.xt = {arm: disturb(self.x[arm], self.v) for arm in self.arms}
     return self.xt
예제 #3
0
 def slot(self):
     #self.xt = self.x
     self.xt = {arm: disturb(self.x[arm], self.v) for arm in self.arms}
     return self.xt