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

📄 distance_bhattacharyya.m

📁 This a collection of MATLAB functions for extended Kalman filtering, unscented Kalman filtering, par
💻 M
字号:
function [Bc,Bd] = distance_bhattacharyya(v, P, Q)
%[Bc,Bd] = distance_bhattacharyya(v, P, Q)
%
% INPUTS:
%   v - difference between two means v = p - q
%   P, Q - covariance matrices
%
% OUTPUTS:
%   Bc - Bhattacharyya coefficient
%   Bd - Bhattacharyya distance
%
% REFERENCES:
%   Shaohua Kevin Zhou and Rama Chellappa, From sample similarity to ensemble 
%   similarity: Probabilistic distance measures in reproducing kernel Hilbert 
%   space. IEEE Transactions on Pattern Analysis and Machine Intelligence (to 
%   appear). http://www.cfar.umd.edu/~shaohua/publications.html
%
% Bhattacharyya distance between two Gaussians.
%
% Tim Bailey 2005.

S = 0.5*(P + Q);
Bd = 0.125*v'*inv(S)*v + 0.5*log(det(S)/sqrt(det(P)*det(Q)));
Bc = exp(-Bd);

⌨️ 快捷键说明

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