#include <structseq.h>
Public Methods | |
| size_t | operator() (const StructSeq *sequ) const |
|
|
Definition at line 57 of file structseq.h. 00058 {
00059 register int i;
00060 register unsigned hash;
00061 const char *s;
00062
00063 s = sequ->getPackedSequence();
00064
00065 for (i=0, hash = 0; *s; s++, i++ , hash *= 5 )
00066 {
00067 hash += *s * coeff[i];
00068 }
00069 return ((hash) & (HASHSIZE)); /*divide through HASHSIZE for normalization */
00070 }
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001