comparison splicesitescore/splicemodels/hashseq.m~ @ 0:22486256ed0d

Uploaded
author xuebing
date Sat, 31 Mar 2012 21:51:30 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:22486256ed0d
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