I don't think that you need a new module for this file. This should go in the dipy/core module. There are other stats there too.