To ensure valid covariance matrices, the GSN algorithm involves finding the nearest (in the sense of the Frobenius norm) symmetric positive semi-definite matrix to a given matrix (see PSD() in Steps 5 and 7). This is accomplished using the method proposed by Higham (Higham, 1988). Our implementation is as follows (constructnearestpsdcovariance.{m,py}):
Note that this method is equivalent to performing an eigendecomposition of and setting negative eigenvalues to zero.
Do you have any questions about this protocol?
Post your question to gather feedback from the community. We will also invite the authors of this article to respond.
Tips for asking effective questions
+ Description
Write a detailed description. Include all information that will help others answer your question including experimental processes, conditions, and relevant images.