spectralpython / spectral

Python module for hyperspectral image processing
MIT License
563 stars 138 forks source link

What if the covariance is a singular matrix? #159

Open zxdawn opened 9 months ago

zxdawn commented 9 months ago

Sometimes, we may get a singular matrix as the covariance. The inv_cov won't work. Is it correct to use np.linalg.pinv instead of np.linalg.inv for this kind of case?