cmatrix.count_seq

cmatrix.count_seq()

Count the number of sequences repetiotion in the given data segment as list.

Parameters

type

Description

liste

list

The liste containing the given sequence

seq

list

The sequence as list

Returns
int

The number of repetition of the sequence in da list

Examples

>>> l=[1,2,3,7,3,4,7,3,4,7,3,4]
>>> seq=[7,3,4]
>>> count_seq(l,seq)
3