Beispiel #1
0
        /// <summary>
        /// 获取守冷期数。
        /// </summary>
        /// <param name="startDC">起始期数确定程度</param>
        /// <param name="endDC">止损期数确定程度</param>
        /// <param name="p">玩法概率</param>
        /// <returns>守冷期数</returns>
        public static double GetWatchColdN(double startDC, double endDC, double p)
        {
            double startN = FFG.GetN(startDC, p);
            double endN   = FFG.GetN(endDC, p);

            return(Math.Round(endN - startN, MidpointRounding.AwayFromZero));
        }
Beispiel #2
0
        /// <summary>
        /// 冷偏差
        /// </summary>
        /// <param name="n">遗漏期数 </param>
        /// <param name="p">某一种玩法的中奖概率</param>
        /// <returns>冷偏差</returns>
        public static double GetColdByDC(double dc, double p)
        {
            double n = FFG.GetN(dc, p);

            return(GetColdByN(n, p));
        }