% dH.m -- Compute Hamming distance between input and codeword along path.
%
% Rich Kozick, Nov. 2001

function d = dH(branch, input, state, nextstate)

d = sum(branch ~= input);

