Imported from https://github.com/Nielspace/Non-linear-Independent-Component-Estimation
