sustaining_gazes/matlab_version/face_validation/DeepLearnToolbox/util/sigmrnd.m
2016-04-28 15:40:36 -04:00

4 lines
No EOL
126 B
Matlab

function X = sigmrnd(P)
% X = double(1./(1+exp(-P)))+1*randn(size(P));
X = double(1./(1+exp(-P)) > rand(size(P)));
end