diff options
author | leochanj <jbakita@cs.unc.edu> | 2020-10-21 01:52:54 -0400 |
---|---|---|
committer | leochanj <jbakita@cs.unc.edu> | 2020-10-21 15:59:54 -0400 |
commit | 0efc775370d2ff91927d1b383a99eab78dc5538f (patch) | |
tree | a41fe470fee5adc4d944ecd6b917bc48df8c7e0f /SD-VBS/benchmarks/localization/src/matlab/weightedSample.m | |
parent | e2b50015cebdfba68699abd6e8575e38230f5a78 (diff) |
debug libextra and remove matlab
FLUSH_CACHES
Diffstat (limited to 'SD-VBS/benchmarks/localization/src/matlab/weightedSample.m')
-rw-r--r-- | SD-VBS/benchmarks/localization/src/matlab/weightedSample.m | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/SD-VBS/benchmarks/localization/src/matlab/weightedSample.m b/SD-VBS/benchmarks/localization/src/matlab/weightedSample.m deleted file mode 100644 index dc9274b..0000000 --- a/SD-VBS/benchmarks/localization/src/matlab/weightedSample.m +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | %function x_gen_id=weightedSample(w) | ||
2 | function bin=weightedSample(w) | ||
3 | n=size(w,1); | ||
4 | seed=randWrapper(n,1); | ||
5 | bin = zeros(n,1); | ||
6 | %x_gen_id=zeros(n,1); | ||
7 | for i=1:n | ||
8 | for j=1:n | ||
9 | if(seed(j,1) > 0) | ||
10 | bin(j,1) = bin(j,1) + 1; | ||
11 | % x_gen_id(j,1) = x_gen_id(j,1) + bin(j,1); | ||
12 | end | ||
13 | end | ||
14 | % bin = (seed>0); | ||
15 | % x_gen_id=x_gen_id+bin; | ||
16 | seed=seed-w(i,1); | ||
17 | end | ||
18 | % x_gen_id = bin; | ||
19 | %x_gen=x(:,x_gen_id); | ||
20 | |||