% check Gauss-Markov ML cost for a local minimum or stationary point
%
% assumes that the symbols are -1 and +1
%
function r = check_GM_ML_min( b)

global N;

global pilot;

r = 1;

c1 = get_GM_ML_cost( b);
  
for k = 1:N
 if( isempty(pilot) | pilot(k) == 0)
  b(k) = -b(k);
  c2 = get_GM_ML_cost( b);
  b(k) = -b(k);
% if( c2 <= c1)
  if( c2 <  c1)
    r = 0;
    break;
  end
 end % pilot
end
