diff options
Diffstat (limited to 'SD-VBS/benchmarks/localization/src/matlab/get3DGaussianProb.m')
| -rw-r--r-- | SD-VBS/benchmarks/localization/src/matlab/get3DGaussianProb.m | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/SD-VBS/benchmarks/localization/src/matlab/get3DGaussianProb.m b/SD-VBS/benchmarks/localization/src/matlab/get3DGaussianProb.m deleted file mode 100644 index 6a54530..0000000 --- a/SD-VBS/benchmarks/localization/src/matlab/get3DGaussianProb.m +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | function p=get3DGaussianProb(data, mean, A) | ||
| 2 | n_data=size(data,1); | ||
| 3 | n_channel=size(data,2); | ||
| 4 | |||
| 5 | p=zeros(n_data,1); | ||
| 6 | diff=(data)-ones(n_data,1)*mean; | ||
| 7 | detA = 1; %detA = det(A) | ||
| 8 | dotA = randWrapper(size(diff,1),1); %dotA = dot(diff*A, diff, 2) | ||
| 9 | p=sqrt(detA/((2*pi)^n_channel))*exp(-0.5*dotA); | ||
| 10 | |||
| 11 | %% KVS If the above doesnt work, try uncommenting these lines below | ||
| 12 | |||
| 13 | %%temp = (det(A)/((2*pi)^n_channel)); | ||
| 14 | %temp = (1.0/((2*pi)^n_channel)); | ||
| 15 | %temp1 = dot(diff*A,diff,2); | ||
| 16 | %%temp1 = rand(1000,1); | ||
| 17 | %temp2 = exp(-0.5*temp1); | ||
| 18 | %p = sqrt(temp) * exp(temp2); | ||
| 19 | % | ||
| 20 | |||
| 21 | |||
| 22 | |||
