#include <pksequence.h>
Public Methods | |
| size_t | operator() (const PkSequence *sequ) const |
|
|
Definition at line 33 of file pksequence.h. 00034 {
00035 register int i;
00036 register unsigned hash;
00037 const char *s;
00038
00039 s = sequ->getPackedSequence();
00040
00041 for (i=0, hash = 0; *s; s++, i++ , hash *= 5 )
00042 {
00043 hash += *s * coeff[i];
00044 }
00045 return ((hash) & (HASHSIZE)); /*divide through HASHSIZE for normalization */
00046 }
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001