quantlib.util.rates.flat_rate

flat_rate(forward, daycounter)

Create a flat yield curve, with rate defined according to the specified day-count convention. Used mostly for unit tests and simple illustrations.