% sqerr.m -- Compute squared error for soft-decision decoding.
%
% Rich Kozick, Dec. 2001

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

d = sum( (branch - input).^2 );

