From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- SD-VBS/common/matlab/randnWrapper.m | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SD-VBS/common/matlab/randnWrapper.m (limited to 'SD-VBS/common/matlab/randnWrapper.m') diff --git a/SD-VBS/common/matlab/randnWrapper.m b/SD-VBS/common/matlab/randnWrapper.m new file mode 100644 index 0000000..1755957 --- /dev/null +++ b/SD-VBS/common/matlab/randnWrapper.m @@ -0,0 +1,17 @@ +function out = randnWrapper(m, n) + +out = ones(m,n); +temp = randWrapper(m,n); + +for i=1:m + for j=1:n + w = temp(i,j); + x1 = 1; + %w = sqrt((-2.0*log(w))/w); + w = ((-2.0*log(w))/w); + out(i,j) = x1*w; + end +end + +end + -- cgit v1.2.2