make_random_state_space

hcipy.util.make_random_state_space(n_states, bandwidth=1.0, seed=None)[source]

Generate a random stable state space transition matrix.

Creates a random state transition matrix with stable eigenvalues (all have negative real parts). Useful for testing or generating synthetic dynamics models.

Parameters:
n_statesint

Number of internal states.

bandwidthfloat, optional

Approximate bandwidth of the dynamics. Larger values give faster dynamics. Default is 1.0.

seedint, optional

Random seed for reproducibility.

Returns:
transition_matrixndarray

Random stable state transition matrix (n_states x n_states).