added missing function from scatnet
merging
Merge branch 'master' of github.com:joanbruna/prediction