⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 normald.m

📁 该工具箱是用于统计模式识别的
💻 M
字号:
function [p]=normald(X,mi,sigma)
% [p]=normald(X,mi,sigma)
%
% NORMALD calculates the value of many-dimensional probability density
%   of the normal (Gaussian) distribution for given vectors in the
%   matrix X and parameters of the normal distribution mi, sigma.
%
% Input:
%   x [NxK]  - matrix K of input vectors for which the density is calculated
%   mi [Nx1] - vector of mean values
%   sigma [NxN] - covariance matrix
%
%  where N is the dimension of the feature space.
%
% Output:
%   p[1xK] - the value of the probability density
%
% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 19.03.2000
% Modifications
% 24. 6.00 V. Hlavac, comments changed to English.

DIM=size(X,1);
p=exp(-1/2*mahalan(X,mi,sigma))/((2*pi)^(DIM/2) * sqrt(det(sigma)));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -