Spectral homogenization working via linear regression.