Bhattacharyya Distance Measure for Pattern Recognition
The m-file provides a tool to calculate the Bhattacharyya Distance Measure (BDM) between two classes of normal distributed data. The BDM is widely used in Pattern Recognition as a criterion for Feature Selection.
Directly calculation may result in divide by zero error due to possible (near) singularity of cov(X1)*cov(X2). The improved code uses the Cholesky factorization for the normal cases but uses sqrtm for near singular cases.
Cite As
Yi Cao (2026). Bhattacharyya Distance Measure for Pattern Recognition (https://www.mathworks.com/matlabcentral/fileexchange/18662-bhattacharyya-distance-measure-for-pattern-recognition), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Deep Learning Toolbox > Train Deep Neural Networks > Function Approximation, Clustering, and Control > Function Approximation and Clustering > Pattern Recognition >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | update descriptions. |
