Moved generation of intraday regressors in detper method to seperate function, so that it can be used by other methods.