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

4 lines
126 B
Mathematica
Raw Normal View History

2016-04-28 21:40:36 +02: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