View full-text article in PMC Sensors (Basel). 2019 May 22;19(10):2356. doi: 10.3390/s19102356 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2 The MM1-SPICE algorithm for spatially non-uniform white noise. 1:Give r0 and ϵ, 2:u=0, 3: repeat 4: Wu=BDiag(ru)BH+Jm, 5: Calculate Mu and wu, 6: d=0, 7: r0=ru, 8: repeat 9: Wd=BDiag(rd)BH+Jm, 10: rd+1=sqrt(diag(Diag(rd)BH(Wd)−1Mu(Wd)−1BDiag(rd))⊘wu), 11: d=d+1, 12: until ∥rd−rd−1∥2/∥rd−1∥2<ϵ, 13: u=u+1, 14: ru=rd, 15:until∥ru−ru−1∥2/∥ru−1∥2<ϵ.