This class provides methods for determining the length of a time period according to given market convention, both as a number of days and as a year fraction.
Пример #1
0
 public YieldFinder(double faceAmount, List<CashFlow> cashflows, double dirtyPrice, DayCounter dayCounter, Compounding compounding, Frequency frequency, Date settlement)
 {
     _faceAmount = faceAmount;
     _cashflows = cashflows;
     _dirtyPrice = dirtyPrice;
     _compounding = compounding;
     _dayCounter = dayCounter;
     _frequency = frequency;
     _settlement = settlement;
 }
Пример #2
0
 protected DayCounter(DayCounter dayCounter)
 {
     _dayCounter = dayCounter;
 }
Пример #3
0
 public bool Equals(DayCounter other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name);
 }
Пример #4
0
 public YoYInflationLegBase withPaymentDayCounter(DayCounter dayCounter)
 {
     paymentDayCounter_ = dayCounter;
       return this;
 }
Пример #5
0
 // initializers
 public FloatingLegBase withPaymentDayCounter(DayCounter dayCounter)
 {
     paymentDayCounter_ = dayCounter;
     return this;
 }