impelemented a method for generating warped basis.