sustaining_gazes/matlab_version/face_validation/DeepLearnToolbox/util/sigmrnd.m

4 lines
126 B
Mathematica
Raw Normal View History

2016-04-28 19:40:36 +00:00
function X = sigmrnd(P)
% X = double(1./(1+exp(-P)))+1*randn(size(P));
X = double(1./(1+exp(-P)) > rand(size(P)));
end