comparison splicesitescore/splicemodels/hashseq.m~ @ 6:85af77643e89

Uploaded
author xuebing
date Sun, 01 Apr 2012 01:50:07 -0400
parents 22486256ed0d
children
comparison
equal deleted inserted replaced
5:36288dee9020 6:85af77643e89
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