about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/KPMstats/normal_coef.m
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bnt-master/KPMstats/normal_coef.m')
-rw-r--r--sourcecodes/bnt-master/KPMstats/normal_coef.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/KPMstats/normal_coef.m b/sourcecodes/bnt-master/KPMstats/normal_coef.m
new file mode 100644
index 00000000..a185491e
--- /dev/null
+++ b/sourcecodes/bnt-master/KPMstats/normal_coef.m
@@ -0,0 +1,7 @@
+function c = normal_coef (Sigma)
+% NORMAL_COEF Compute the normalizing coefficient for a multivariate gaussian.
+% c = normal_coef (Sigma)
+
+n = length(Sigma);
+c = (2*pi)^(-n/2) * det(Sigma)^(-0.5);
+