Occurrences
rgh
-
Char Snipeur Messages postés 10112 Date d'inscription Statut Contributeur Dernière intervention -
Char Snipeur Messages postés 10112 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
en matlab comment trouver les nombres d'occurrence d'un vecteur dans un autre vecteur
en matlab comment trouver les nombres d'occurrence d'un vecteur dans un autre vecteur
1 réponse
-
Salut.
Décrit un peu plus explicitement ton problème.-
For example, if e = 10100100101110010110, then n = 20. If N = 2 and M = 10, then the
two blocks would be 1010010010 and 1110010110.
(2) Let Wj (j = 1, ..., N) be the number of times that B (the template) occurs within the
block j. Note that j = 1,...,N. The search for matches proceeds by creating an m-bit
window on the sequence, comparing the bits within that window against the template. If
there is no match, the window slides over one bit , e.g., if m = 3 and the current window
contains bits 3 to 5, then the next window will contain bits 4 to 6. If there is a match, the
window slides over m bits, e.g., if the current (successful) window contains bits 3 to 5,
then the next window will contain bits 6 to 8.
For the above example, if m = 3 and the template B = 001, then the examination
proceeds as follows -
-
-