Occurrences

rgh -  
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

1 réponse

  1. Char Snipeur Messages postés 10112 Date d'inscription   Statut Contributeur Dernière intervention   1 331
     
    Salut.
    Décrit un peu plus explicitement ton problème.
    0
    1. rgh
       
      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
      0
    2. rgh
       
      Thus, W1 = 2, and W2 = 1
      0
    3. Char Snipeur Messages postés 10112 Date d'inscription   Statut Contributeur Dernière intervention   1 331
       
      pardon ? en français STP.
      0