Last updated: 2023-03-16.
tf_quant_finance.datetime.daycount_actual_365_fixed#
Computes the year fraction between the specified dates.
tf_quant_finance.datetime.daycount_actual_365_fixed(
*, start_date, end_date, schedule_info=None, dtype=None, name=None
)
The actual/365 convention specifies the year fraction between the start and end date as the actual number of days between the two dates divided by 365.
Note that the schedule info is not needed for this convention and is ignored if supplied.
For more details see:#
https://en.wikipedia.org/wiki/Day_count_convention#Actual/365_Fixed
Args:#
start_date: ADateTensorobject of any shape.end_date: ADateTensorobject of compatible shape withstart_date.schedule_info: The schedule info. Ignored for this convention.dtype: The dtype of the result. Eithertf.float32ortf.float64. If not supplied,tf.float32is returned.name: Pythonstrname prefixed to ops created by this function. If not supplied,actual_365_fixedis used.
Returns:#
A real Tensor of supplied dtype and shape of start_date. The year
fraction between the start and end date as computed by Actual/365 fixed
convention.