本文整理汇总了Python中Controller.Controller.state方法的典型用法代码示例。如果您正苦于以下问题:Python Controller.state方法的具体用法?Python Controller.state怎么用?Python Controller.state使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Controller.Controller
的用法示例。
在下文中一共展示了Controller.state方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Controller
# 需要导入模块: from Controller import Controller [as 别名]
# 或者: from Controller.Controller import state [as 别名]
return 0
loc[dim] = temp[0][-1] #otherwise, this gives the bin number from mu for the specific dimension
return action_state_probabilities[tuple(concatenate([np.array([action_index]),loc.astype(int)]))]#the joint probability for the entire state associated with the the bin in mu
#PLOTS TRAJECTORY UNDER VARIANCE-BASED CONTROL
if 0:
res = []
z = Controller()
variance_history = np.zeros((100,5)) #has to be the same width as the
z.state = np.array([np.pi+.2,0])
z.step()
for i in range(100):
print i
print "STATE",z.state
z.step()
res.append(z.state[0])
variance_history[i,:] = z.variance_for_successor_states
#plot(res)
# print z.variance_history
#imshow(variance_history)
#DISPLAYS EMPOERMENT/VARIANCE OF POINTS IN STATE-SPACE
if 0:
import itertools