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/toolbox/MultiNcut/gaussian.m | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 SD-VBS/common/toolbox/MultiNcut/gaussian.m (limited to 'SD-VBS/common/toolbox/MultiNcut/gaussian.m') diff --git a/SD-VBS/common/toolbox/MultiNcut/gaussian.m b/SD-VBS/common/toolbox/MultiNcut/gaussian.m new file mode 100755 index 0000000..509b129 --- /dev/null +++ b/SD-VBS/common/toolbox/MultiNcut/gaussian.m @@ -0,0 +1,31 @@ +function p=gaussian(x,m,C); +% p=gaussian(x,m,C); +% +% Evaluate the multi-variate density with mean vector m and covariance +% matrix C for the input vector x. +% +% p=gaussian(X,m,C); +% +% Vectorized version: Here X is a matrix of column vectors, and p is +% a vector of probabilities for each vector. + +d=length(m); + +if size(x,1)~=d + x=x'; +end +N=size(x,2); + +detC = det(C); +if rcond(C)