Compute a sample Pearson product-moment correlation distance matrix incrementally.
stdlib.io
stdlib-js/stats-incr-pcorrdistmat