Interest rate modeling and a time series model for functional data