tmval.Bond.coupon_f

Bond.coupon_f(t: float) → float[source]

Calculates the fraction of a coupon period between time t and the time of the last coupon payment prior to time t.

Parameters

t (float) – The valuation time.

Returns

The fraction of a coupon period.

Return type

float