Mercurial > repos > xuebing > splicesite_max_entropy
view splicesitescore/splicemodels/hashseq.m~ @ 8:ec97befe722b
Uploaded
author | xuebing |
---|---|
date | Sun, 01 Apr 2012 08:14:45 -0400 |
parents | 22486256ed0d |
children |
line wrap: on
line source
function [sum ] = hashseq(seq) sum = 0; len = length(seq); four = [1;4;16;64;256;1024;4096]; for i = 1:len sum = sum + seq(i) * four(len - i - 1) ; end