timescale
¶
Functions for converting the timescale of a TPM.
- pyphi.timescale.sparse(matrix, threshold=0.1)¶
- pyphi.timescale.sparse_time(tpm, time_scale)¶
- pyphi.timescale.dense_time(tpm, time_scale)¶
- pyphi.timescale.run_tpm(tpm, time_scale)¶
Iterate a TPM by the specified number of time steps.
- Parameters:
tpm (np.ndarray) – A state-by-node tpm.
time_scale (int) – The number of steps to run the tpm.
- Returns:
np.ndarray
- pyphi.timescale.run_cm(cm, time_scale)¶
Iterate a connectivity matrix the specified number of steps.
- Parameters:
cm (np.ndarray) – A connectivity matrix.
time_scale (int) – The number of steps to run.
- Returns:
The connectivity matrix at the new timescale.
- Return type:
np.ndarray