cmatrix.find_invariant¶
- cmatrix.find_invariant()¶
Find the invariant part since the beggining until the sequence repetitions start.
Parameters
type
Description
liste
list
the raw data as list
seq
list
the sequence found in the data list
- Returns
- list
A list containing the unsequenced begining of liste
Examples
>>> n=[1,2,6,4,5,6,4,5,6,4,5,8,3,9] >>> seq=[6,4,5] >>> find_invariant(n,seq) [1, 2]