h=bits(max_v);
}
+wt_coder_binary::wt_coder_binary(uchar * seq, uint n, alphabet_mapper * am) {
+ uint max_v = 0;
+ for(uint i=0;i<n;i++)
+ max_v = max(am->map((uint)seq[i]),max_v);
+ h=bits(max_v);
+}
+
wt_coder_binary::wt_coder_binary() {}
wt_coder_binary::~wt_coder_binary() {}
/** Buils a wt_coder_binary using the sequence of length n and the alphabet_mapper
* to determine the length of the binary codes */
wt_coder_binary(uint * seq, uint n, alphabet_mapper * am);
+ wt_coder_binary(uchar * seq, uint n, alphabet_mapper * am);
virtual ~wt_coder_binary();
virtual bool is_set(uint symbol, uint l);
virtual bool done(uint symbol, uint l);