dymoesco.dynamics.statespace_model.Rn¶
-
class
dymoesco.dynamics.statespace_model.Rn¶ Bases:
dymoesco.dynamics.statespace_model.StateSpace-
__init__()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__()Initialize self.
animate(traj[, dim1, dim2, tail_len, ax])gui(key_to_u_map, x0[, dim1, dim2])gui for Rn statespace models.
plot_phase(traj[, dim1, dim2, ax, color])-
gui(key_to_u_map, x0, dim1=0, dim2=1)¶ gui for Rn statespace models.
Starts an interactive gui for the dynamic_model in self, which is controlled using the arrows (which binding defined by key_to_u_map).
- Parameters
key_to_u_map (dict) – key_to_u_map binds ‘up’, ‘down’, ‘right’, ‘left’ to controls.
Examples
key_to_u_map = {'up': [0,1], 'down': [0,-1], 'right': [1,0], 'left': [-1,0]}
Notes
self needs to be a DiscreteDynamicModel.
-