Matlab code for biwhitening (see "Biwhitening Reveals the Rank of a Count Matrix". SIAM Journal on Mathematics of Data Science 4, no. 4(2022): 1420-1446; DOI; arXiv). There are two folders:
Biwhitening_example_Poisson: This folder includes an example of the method applied to a simulated Poisson data matrix. The code generates the spectrum of the data before and after applying biwhitening. The main script is "Biwhitening_example_Poisson.m". Note that this is the non-adaptive version of the method, which is designed specifically for the Poisson distribution.
Biwhitening_example_negative_binomial: This folder includes an example of the adaptive version of the method applied to a simulated negative binomial data matrix with unknown parameters. The method automatically finds the best QVF parameters and uses them to biwhiten the data matrix. The example shows the spectrum before and after biwhitening.