Пример #1
0
 //compute Sstar for the BC's
 /// <summary>
 /// Computes the disc div.
 /// </summary>
 /// <param name="tTemp">The t temp.</param>
 /// <param name="T">The T.</param>
 /// <param name="ratedays">The ratedays.</param>
 /// <param name="rateamts">The rateamts.</param>
 /// <param name="divdays">The divdays.</param>
 /// <param name="divamts">The divamts.</param>
 /// <returns></returns>
 private double ComputeDiscDiv(double tTemp, double T, int[] ratedays, double[] rateamts, int[] divdays, double[] divamts)
 {
     return(EquityAnalytics.GetPVDivsCCLin365(tTemp, T, divdays, divamts, ratedays, rateamts));
 }
Пример #2
0
        /// <summary>
        /// PVs the divs.
        /// </summary>
        /// <param name="yearFraction1">The year fraction1.</param>
        /// <param name="yearFraction2">The year fraction2.</param>
        /// <returns></returns>
        private double PVDivs(double yearFraction1, double yearFraction2)
        {
            double res = EquityAnalytics.GetPVDivsCCLin365(yearFraction1, yearFraction2, _divDays, _divAmts, _rateDays, _rateAmts);

            return(res);
        }