コード例 #1
0
ファイル: FormTendency.cs プロジェクト: xh330786390/XSCP
        /// <summary>
        /// 分析彩票
        /// </summary>
        private void analyzeXscp()
        {
            FreqModel freq = new FreqModel();

            freq.big   = bigNum(0);
            freq.small = smallNum(0);
            freq.odd   = oddPairNum(1, 0);
            freq.pair  = oddPairNum(0, 0);
            freq.dbl   = doubleNum(0);

            //大
            this.label10.Text = freq.big.ToString();

            //小
            this.label9.Text = freq.small.ToString();

            //奇数
            this.label8.Text = freq.odd.ToString();

            //偶数
            this.label7.Text = freq.pair.ToString();

            //偶数
            this.label6.Text = freq.dbl.ToString();
        }
コード例 #2
0
ファイル: FormTendency.cs プロジェクト: xh330786390/XSCP
        /// <summary>
        /// 初始化预测值
        /// </summary>
        /// <param name="fm"></param>
        private void initForecast(FreqModel fm)
        {
            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "大大",
                sum      = fm.big * 4 + fm.odd + fm.oddPair + fm.pairOdd + fm.pair,
                diff     = Math.Abs(fm.big - fm.odd) + Math.Abs(fm.big - fm.oddPair) + Math.Abs(fm.big - fm.pairOdd) + Math.Abs(fm.big - fm.pair)
            });

            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "大小",
                sum      = fm.bigSmall * 4 + fm.odd + fm.oddPair + fm.pairOdd + fm.pair,
                diff     = Math.Abs(fm.bigSmall - fm.odd) + Math.Abs(fm.bigSmall - fm.oddPair) + Math.Abs(fm.bigSmall - fm.pairOdd) + Math.Abs(fm.bigSmall - fm.pair)
            });

            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "小大",
                sum      = fm.smallBig * 4 + fm.odd + fm.oddPair + fm.pairOdd + fm.pair,
                diff     = Math.Abs(fm.smallBig - fm.odd) + Math.Abs(fm.smallBig - fm.oddPair) + Math.Abs(fm.smallBig - fm.pairOdd) + Math.Abs(fm.smallBig - fm.pair)
            });

            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "小小",
                sum      = fm.small * 4 + fm.odd + fm.oddPair + fm.pairOdd + fm.pair,
                diff     = Math.Abs(fm.small - fm.odd) + Math.Abs(fm.small - fm.oddPair) + Math.Abs(fm.small - fm.pairOdd) + Math.Abs(fm.small - fm.pair)
            });


            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "奇奇",
                sum      = fm.odd * 4 + fm.big + fm.bigSmall + fm.smallBig + fm.small,
                diff     = Math.Abs(fm.odd - fm.big) + Math.Abs(fm.odd - fm.bigSmall) + Math.Abs(fm.odd - fm.smallBig) + Math.Abs(fm.odd - fm.small)
            });

            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "奇偶",
                sum      = fm.oddPair * 4 + fm.big + fm.bigSmall + fm.smallBig + fm.small,
                diff     = Math.Abs(fm.oddPair - fm.big) + Math.Abs(fm.oddPair - fm.bigSmall) + Math.Abs(fm.oddPair - fm.smallBig) + Math.Abs(fm.oddPair - fm.small)
            });

            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "偶奇",
                sum      = fm.pairOdd * 4 + fm.big + fm.bigSmall + fm.smallBig + fm.small,
                diff     = Math.Abs(fm.pairOdd - fm.big) + Math.Abs(fm.pairOdd - fm.bigSmall) + Math.Abs(fm.pairOdd - fm.smallBig) + Math.Abs(fm.pairOdd - fm.small)
            });

            Lt_Forecast.Add(new ForecastModel()
            {
                unitName = "偶偶",
                sum      = fm.pair * 4 + fm.big + fm.bigSmall + fm.smallBig + fm.small,
                diff     = Math.Abs(fm.pair - fm.big) + Math.Abs(fm.pair - fm.bigSmall) + Math.Abs(fm.pair - fm.smallBig) + Math.Abs(fm.pair - fm.small)
            });
        }
コード例 #3
0
ファイル: FormTendency.cs プロジェクト: xh330786390/XSCP
 /// <summary>
 /// 预测数据
 /// </summary>
 private void forecastData()
 {
     Lt_Forecast.Clear();
     this.dataGridView5.Rows.Clear();
     if (Lt_Freq.Count > 0)
     {
         FreqModel fm = Lt_Freq[Lt_Freq.Count - 1];
         initForecast(fm);
         initDgvForecast();
     }
 }
コード例 #4
0
ファイル: FormTendency.cs プロジェクト: xh330786390/XSCP
        /// <summary>
        /// 当前信息统计
        /// </summary>
        private void initStatistics()
        {
            this.dataGridView3.Rows.Clear();
            for (int i = 0; i < 4; i++)
            {
                this.dataGridView3.Rows.Add();
            }

            this.dataGridView3[0, 0].Value = "大大";
            this.dataGridView3[0, 3].Value = "小小";

            if (Lt_Freq.Count > 0)
            {
                FreqModel fm = Lt_Freq[Lt_Freq.Count - 1];

                this.dataGridView3[1, 0].Value = "大大奇奇【" + fm.big + "," + fm.odd + "】";
                this.dataGridView3[2, 0].Value = "大大奇偶【" + fm.big + "," + fm.oddPair + "】";
                this.dataGridView3[3, 0].Value = "大大偶奇【" + fm.big + "," + fm.pairOdd + "】";
                this.dataGridView3[4, 0].Value = "大大偶偶【" + fm.big + "," + fm.pair + "】";

                this.dataGridView3[1, 1].Value = "大小奇奇【" + fm.bigSmall + "," + fm.odd + "】";
                this.dataGridView3[2, 1].Value = "大小奇偶【" + fm.bigSmall + "," + fm.oddPair + "】";
                this.dataGridView3[3, 1].Value = "大小偶奇【" + fm.bigSmall + "," + fm.pairOdd + "】";
                this.dataGridView3[4, 1].Value = "大小偶偶【" + fm.bigSmall + "," + fm.pair + "】";

                this.dataGridView3[1, 2].Value = "小大奇奇【" + fm.smallBig + "," + fm.odd + "】";
                this.dataGridView3[2, 2].Value = "小大奇偶【" + fm.smallBig + "," + fm.oddPair + "】";
                this.dataGridView3[3, 2].Value = "小大偶奇【" + fm.smallBig + "," + fm.pairOdd + "】";
                this.dataGridView3[4, 2].Value = "小大偶偶【" + fm.smallBig + "," + fm.pair + "】";

                this.dataGridView3[1, 3].Value = "小小奇奇【" + fm.small + "," + fm.odd + "】";
                this.dataGridView3[2, 3].Value = "小小奇偶【" + fm.small + "," + fm.oddPair + "】";
                this.dataGridView3[3, 3].Value = "小小偶奇【" + fm.small + "," + fm.pairOdd + "】";
                this.dataGridView3[4, 3].Value = "小小偶偶【" + fm.small + "," + fm.pair + "】";

                Common.SetDgvBackColorStyle1(this.dataGridView3, 0, 1, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 0, 2, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 0, 3, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 0, 4, Color.LightSteelBlue, 11);

                Common.SetDgvBackColorStyle1(this.dataGridView3, 1, 1, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 1, 4, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 2, 1, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 2, 4, Color.LightSteelBlue, 11);

                Common.SetDgvBackColorStyle1(this.dataGridView3, 3, 1, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 3, 2, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 3, 3, Color.LightSteelBlue, 11);
                Common.SetDgvBackColorStyle1(this.dataGridView3, 3, 4, Color.LightSteelBlue, 11);
            }
        }
コード例 #5
0
ファイル: FormTendency.cs プロジェクト: xh330786390/XSCP
        private void analyzeWarning()
        {
            FreqModel freq;

            Lt_Freq.Clear();
            for (int i = Lt_Digit.Count - 1; i >= 0; i--)
            {
                freq       = new FreqModel();
                freq.big   = bigNum(i);
                freq.small = smallNum(i);
                freq.odd   = oddPairNum(1, i);
                freq.pair  = oddPairNum(0, i);
                freq.dbl   = doubleNum(i);

                freq.bigSmall = bigSmallNum(i);
                freq.smallBig = smallBigNum(i);
                freq.oddPair  = oddPairNum(i, 1, 0);
                freq.pairOdd  = oddPairNum(i, 0, 1);
                freq.dbl      = doubleNum(i);
                Lt_Freq.Add(freq);//添加
            }
        }
コード例 #6
0
ファイル: FormTendency.cs プロジェクト: xh330786390/XSCP
        /// <summary>
        /// 给统计表添加数据
        /// </summary>
        /// <param name="curFm"></param>
        /// <param name="nextFm"></param>
        private void addStatisticsValue(FreqModel curfm, FreqModel nextfm)
        {
            StatisticsModel sm = new StatisticsModel();

            if (nextfm.dbl == 0)
            {
                sm.bigSmallValue = curfm.big;
                sm.unitName      = "重重";
            }
            else if (nextfm.big == 0)
            {
                sm.bigSmallValue = curfm.big;
                sm.unitName      = "大大";
            }
            else if (nextfm.bigSmall == 0)
            {
                sm.bigSmallValue = curfm.bigSmall;
                sm.unitName      = "大小";
            }
            else if (nextfm.smallBig == 0)
            {
                sm.bigSmallValue = curfm.smallBig;
                sm.unitName      = "小大";
            }
            else if (nextfm.small == 0)
            {
                sm.bigSmallValue = curfm.small;
                sm.unitName      = "小小";
            }

            if (nextfm.dbl == 0)
            {
                sm.bigSmallValue = curfm.big;
                sm.unitName     += "重重";
            }
            else if (nextfm.odd == 0)
            {
                sm.oddPairValue = curfm.odd;
                sm.unitName    += "奇奇";
            }
            else if (nextfm.oddPair == 0)
            {
                sm.oddPairValue = curfm.oddPair;
                sm.unitName    += "奇偶";
            }
            else if (nextfm.pairOdd == 0)
            {
                sm.oddPairValue = curfm.pairOdd;
                sm.unitName    += "偶奇";
            }
            else if (nextfm.pair == 0)
            {
                sm.oddPairValue = curfm.pair;
                sm.unitName    += "偶奇";
            }

            var vs = Lt_Statistics.Where(lt => lt.unitName == sm.unitName && lt.bigSmallValue == sm.bigSmallValue && lt.oddPairValue == sm.oddPairValue).ToList();

            if (vs.Count == 0)
            {
                sm.sum = 1;
                Lt_Statistics.Add(sm);
            }
            else
            {
                vs.ForEach(l => l.sum += 1);
            }
        }