comparison splicesite/splicesitescore/splicemodels/hashseq.m~ @ 4:cf2c4930dc9c

Uploaded
author xuebing
date Sun, 01 Apr 2012 01:48:03 -0400
parents
children
comparison
equal deleted inserted replaced
3:2abecae46b7d 4:cf2c4930dc9c
1 function [sum ] = hashseq(seq)
2 sum = 0;
3 len = length(seq);
4 four = [1;4;16;64;256;1024;4096];
5 for i = 1:len
6 sum = sum + seq(i) * four(len - i - 1) ;
7 end
8