nearestPSD

版本 1.0.2 (3.2 KB) 作者: Burke Rosen
Find the nearest Positive Semi-Definite matrix to an arbitrary real or complex square matrix.
170.0 次下载
更新时间 2019/12/20

查看许可证

This functions returns the nearest (minimizing the Frobenius norm of the difference) symmetric and positive definite matrix to a supplied square matrix which can be real or complex. It is particularly useful for ensuring that estimated covariance or cross-spectral matrices have the expected properties of these classes.

By default, it uses the method of Nicholas Highgam:
Higham NJ. Computing a nearest symmetric positive semidefinite matrix.
Linear algebra and its applications. 1988 May 1;103:103-18.
(http://www.sciencedirect.com/science/article/pii/0024379588902236)

This function was modified from nearestSPD.m by John D'Errico
(https://www.mathworks.com/matlabcentral/fileexchange/42885-nearestspd)

Most importantly I added support for complex matrices, which must be Hermitian rather than symmetric.
I also added the 'eig' method and made other small changes.

引用格式

Burke Rosen (2024). nearestPSD (https://www.mathworks.com/matlabcentral/fileexchange/73742-nearestpsd), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息
致谢

参考作品: nearestSPD

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.2

fixed abbreviations.

1.0.1

updated Summary.

1.0.0