public class DayCountConvention_ACT_ACT_YEARFRAC extends DayCountConvention_ACT implements Serializable
This method is not identical to ACT/ACT ISDA. For ACT/ACT ISDA use DayCountConvention_ACT_ACT_ISDA.
In addition the method has the defect, that it is not additive (if you consider small intervals). For example YEARFRAC(30.12.2011, 04.01.2012, 1) is not equal to YEARFRAC(30.12.2011, 01.01.2012, 1) + YEARFRAC(01.01.2012, 04.01.2012, 1).
| Constructor and Description |
|---|
DayCountConvention_ACT_ACT_YEARFRAC()
Create an ACT/ACT YEARFRAC daycount convention.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDaycountFraction(LocalDate startDate,
LocalDate endDate)
Return the daycount fraction corresponding to the period from startDate to endDate given the
specific daycount convention.
|
String |
toString() |
daysBetween, getDaycountpublic DayCountConvention_ACT_ACT_YEARFRAC()
public double getDaycountFraction(LocalDate startDate, LocalDate endDate)
DayCountConventiongetDaycountFraction in interface DayCountConventionstartDate - The start date given as a LocalDate.endDate - The end date given as a LocalDate.Copyright © 2019. All rights reserved.