% check Gaussian or GM ML cost for a saddle point
%
% assumes that the symbols are -1 and +1
%
function r = check_Gauss_ML_saddle( b)

global GM;
global N;

r = 0;

if( GM)
  c1 = get_GM_ML_cost( b);
else
  c1 = get_Gauss_ML_cost( b);
end
  
for k = 1:N
  b(k) = -b(k);
  if( GM)
    c2 = get_GM_ML_cost( b);
  else
    c2 = get_Gauss_ML_cost( b);
  end
  b(k) = -b(k);
  if( c2 ==  c1)
    r = 1;
    break;
  end
end
