% wrapper function for the three quantization methods
function [qv] = general_quantize(bits,which,v,blocks,curv,max_whole);
switch which
case 1
   qv = quantize(v,bits,blocks,max_whole);
case 2
   qv = quantize_tan(v,bits,blocks,curv,max_whole);
case 3
   qv = quantize_atan(v,bits,blocks,curv,max_whole);
end
