public class DayCountConvention_ACT_ACT_YEARFRAC extends DayCountConvention_ACT
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(Calendar startDate,
Calendar endDate)
Return the daycount fraction corresponding to the period from startDate to endDate given the
specific daycount convention.
|
String |
toString() |
daysBetween, getDaycount
public DayCountConvention_ACT_ACT_YEARFRAC()
public double getDaycountFraction(Calendar startDate, Calendar endDate)
DayCountConventionInterface
Copyright © 2015. All rights reserved.