Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix median sampling error if only 1 distinct value (#377)
This commit addresses an exception that occurs during calculation of the median sampling error if the data containts only 1 distinct value. Error being addressed: The data appears to lie in a lower-dimensional subspace of the space in which it is expressed. This has resulted in a singular data covariance matrix, which cannot be treated using the algorithms implemented in `gaussian_kde`. Consider performing principle component analysis / dimensionality reduction and using `gaussian_kde` with the transformed data.
- Loading branch information