As the GDM code says, "it's hard to be event controlled while maintaining state," so we add our own state-monitoring variables and data structures to process the keystroke-dynamics functions.
如GDM代码所示,“维护状态时很难控制事件”,因此添加我们自己的状态监视变量和数据结构来处理击键力学函数。
To change state, you pass a function to the agent and it evaluates a stream of these functions, replacing the state with the output of each function.
要更改状态,您可以向agent传递一个函数,然后agent评估功能流,用每个函数的输出替换状态。
The state is primed with initial-state and passed throughout the iteration, allowing the visitor functions to manipulate it in whatever way they desire.
状态通过 initial-state 预设,并在整个迭代过程中传递,允许访问者函数按照所需的任何方式操作状态。
应用推荐