function pval = step ( x )
n = length ( x );
pval = floor ( 2 * [0:n-1] / n );
