亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? assessment.cs

?? 基于BP算法的貝葉斯網絡參數學習
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace bs
{
	/// <summary>
	/// Assessment 的摘要說明。
	/// </summary>
	public class Assessment : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ListView listView1;
		private bs.Grid grid1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		public double[][] f=new double[100][];
		public int gridrows=0;
		public int gridcols=0;
		public string assessNode;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		//private readonly Doc HostForm;

		public Assessment(ArrayList strArray, string[][] str,ArrayList AssessNode,double[][] assessValue,string assNode)
		{

			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();
			assessNode=assNode;
			//grid1的處理
			string[] ss=new string[AssessNode.Count];
			 // MessageBox.Show(AssessNode.Count.ToString());
			for(int j=0;j<AssessNode.Count;j++)
			{
				ss[j]=AssessNode[j].ToString();
				//MessageBox.Show(ss[j].ToString());
			}
			grid1.SetColumnNames(ss);
			for(int i=1;i<=ss.Length;i++)
			{
				grid1.SetColumnWidthAndIgnoreFont(i, 90);
			}
			//把double型數值轉換為string加以顯示
			string[][] Value=new string[assessValue.Length][];
			for(int i=0;i<assessValue.Length;i++)
			{
				Value[i]=new string[assessValue[0].Length];
				for(int j=0;j<assessValue[0].Length;j++)
				{
					Value[i][j]=assessValue[i][j].ToString();
				}
			}

			for(int i=1;i<=str.Length;i++)
			grid1.SetFullRow(i, Value[i-1]);
			gridrows=assessValue.Length;
			gridcols=assessValue[0].Length;
            grid1.TextChanged+=new System.EventHandler(textchanged);
			grid1.KeyPress+=new System.Windows.Forms.KeyPressEventHandler(keypress);

			for(int i=0;i<gridrows;i++)
			{
				f[i]=new double[gridcols];
				for(int j=0;j<gridcols;j++)
				{
						
					f[i][j]=System.Convert.ToDouble(grid1.GetCell(i+1,j+1));
					//MessageBox.Show(f[i][j].ToString());
				}
			}

			//listview1的處理
			if(strArray.Count==0)
				listView1.Columns.Add(" ",2,HorizontalAlignment.Center);
			else
			{ //處理技巧
				listView1.Columns.Add(" ",1,HorizontalAlignment.Center);
				for(int i=0;i<strArray.Count;i++)
				{
					listView1.Columns.Add(strArray[i].ToString(),45,HorizontalAlignment.Center);
				}
						
           //listView1的賦值,注意listview1的第一列是是item的名稱,而不是listview1對應的[0][0]位置
			for(int i=0;i<str.Length;i++)
				{
						listView1.Items.Add(str[i][0]);
					for(int j=0;j<str[i].Length;j++)
						//listView1.Items[aRow-1].SubItems[aColumn - 1].Text = text;
					{
						
						listView1.Items[i].SubItems.Add(str[i][j]);
					}
				}
			}
			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		/// 
		public double[][] Func
		{
			get
			{
				return f;
			}
		}
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		public void textchanged(object sender,System.EventArgs e)
		{ MessageBox.Show("243343");
			for(int i=0;i<gridrows;i++)
			{
				f[i]=new double[gridcols];
				for(int j=0;j<gridcols;j++)
				{
						
					f[i][j]=System.Convert.ToDouble(grid1.GetCell(i+1,j+1));
					//MessageBox.Show(f[i][j].ToString());
				}
			}
		}
		public void keypress(object sender, System.Windows.Forms.KeyPressEventArgs e)
		{
			if(e.KeyChar==(char)13)
			{
				MessageBox.Show("fdg");
				for(int i=0;i<gridrows;i++)
				{
					f[i]=new double[gridcols];
					for(int j=0;j<gridcols;j++)
					{
						
						f[i][j]=System.Convert.ToDouble(grid1.GetCell(i+1,j+1));
						//MessageBox.Show(f[i][j].ToString());
					}
				}
			}
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
            this.panel1 = new System.Windows.Forms.Panel();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.grid1 = new bs.Grid();
            this.label2 = new System.Windows.Forms.Label();
            this.splitter1 = new System.Windows.Forms.Splitter();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.listView1 = new System.Windows.Forms.ListView();
            this.label1 = new System.Windows.Forms.Label();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.panel1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // panel1
            // 
            this.panel1.AllowDrop = true;
            this.panel1.AutoScroll = true;
            this.panel1.Controls.Add(this.groupBox2);
            this.panel1.Controls.Add(this.splitter1);
            this.panel1.Controls.Add(this.groupBox1);
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(464, 328);
            this.panel1.TabIndex = 0;
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.grid1);
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBox2.Location = new System.Drawing.Point(211, 0);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(253, 328);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
            // 
            // grid1
            // 
            this.grid1.Dock = System.Windows.Forms.DockStyle.Top;
            this.grid1.Location = new System.Drawing.Point(3, 40);
            this.grid1.Name = "grid1";
            this.grid1.Size = new System.Drawing.Size(247, 184);
            this.grid1.TabIndex = 1;
            this.grid1.Load += new System.EventHandler(this.grid1_Load);
            // 
            // label2
            // 
            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label2.Dock = System.Windows.Forms.DockStyle.Top;
            this.label2.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label2.Location = new System.Drawing.Point(3, 17);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(247, 23);
            this.label2.TabIndex = 0;
            this.label2.Text = "Node";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // splitter1
            // 
            this.splitter1.Cursor = System.Windows.Forms.Cursors.SizeWE;
            this.splitter1.Location = new System.Drawing.Point(208, 0);
            this.splitter1.Name = "splitter1";
            this.splitter1.Size = new System.Drawing.Size(3, 328);
            this.splitter1.TabIndex = 1;
            this.splitter1.TabStop = false;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.listView1);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
            this.groupBox1.Location = new System.Drawing.Point(0, 0);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(208, 328);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            // 
            // listView1
            // 
            this.listView1.AllowDrop = true;
            this.listView1.Dock = System.Windows.Forms.DockStyle.Top;
            this.listView1.FullRowSelect = true;
            this.listView1.GridLines = true;
            this.listView1.Location = new System.Drawing.Point(3, 40);
            this.listView1.Name = "listView1";
            this.listView1.Size = new System.Drawing.Size(202, 184);
            this.listView1.TabIndex = 1;
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View = System.Windows.Forms.View.Details;
            this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
            // 
            // label1
            // 
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label1.Dock = System.Windows.Forms.DockStyle.Top;
            this.label1.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label1.Location = new System.Drawing.Point(3, 17);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(202, 23);
            this.label1.TabIndex = 0;
            this.label1.Text = "ParentNode(s)";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // button1
            // 
            this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.button1.Location = new System.Drawing.Point(48, 352);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 1;
            this.button1.Text = "確定";
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // button2
            // 
            this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.button2.Location = new System.Drawing.Point(208, 352);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(75, 23);
            this.button2.TabIndex = 2;
            this.button2.Text = "取消";
            this.button2.Click += new System.EventHandler(this.button2_Click);
            // 
            // Assessment
            // 
            this.AllowDrop = true;
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.AutoScroll = true;
            this.ClientSize = new System.Drawing.Size(656, 397);
            this.Controls.Add(this.button2);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.panel1);
            this.Name = "Assessment";
            this.Text = "Assessment";
            this.panel1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);

		}
		#endregion

		public double[][] returnf()
		{
			double[][] func=new double[gridrows][];
			for(int i=0;i<gridrows;i++)
			{
				func[i]=new double[gridcols];
				for(int j=0;j<gridcols;j++)
				func[i][j]=System.Convert.ToDouble(grid1.GetCell(i+1,j+1));
			}

			return func;
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			
				for(int i=0;i<gridrows;i++)
		 {
			 f[i]=new double[gridcols];
			 for(int j=0;j<gridcols;j++)
			 {
						
				 f[i][j]=System.Convert.ToDouble(grid1.GetCell(i+1,j+1));
				// MessageBox.Show(f[i][j].ToString());
			 }
		 }
			//MessageBox.Show(f.Length.ToString());
			//MessageBox.Show(f[0].Length.ToString());
			this.Close();
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			//foreach(BNode node in this.pmyNodeArray)
			this.Close();
		}

        private void listView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void groupBox2_Enter(object sender, EventArgs e)
        {

        }

        private void grid1_Load(object sender, EventArgs e)
        {

        }
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品天美传媒| 狠狠色丁香婷婷综合| 三级一区在线视频先锋| 精品一区二区三区的国产在线播放| caoporn国产精品| 日韩精品专区在线影院观看| 亚洲欧美一区二区三区孕妇| 久草热8精品视频在线观看| 97久久人人超碰| 国产欧美日韩麻豆91| 日韩中文字幕亚洲一区二区va在线| 99久久精品一区| 国产欧美日韩综合精品一区二区| 欧美aaa在线| 欧美色中文字幕| 亚洲精品亚洲人成人网| 成人午夜激情片| 久久久久国产成人精品亚洲午夜| 五月天久久比比资源色| 91福利在线免费观看| 国产精品妹子av| 国产风韵犹存在线视精品| 制服丝袜中文字幕一区| 亚洲不卡在线观看| 91小视频免费看| 亚洲欧洲另类国产综合| 国产成人av一区二区| 久久精品一区八戒影视| 国产精品伊人色| 欧美成人猛片aaaaaaa| 免费人成在线不卡| 91精品中文字幕一区二区三区| 一区二区三区色| 欧美亚洲禁片免费| 亚洲精品你懂的| 欧美日韩中字一区| 丝袜亚洲精品中文字幕一区| 欧美久久久久久蜜桃| 日本最新不卡在线| 日韩欧美国产一二三区| 美女国产一区二区| 精品久久久三级丝袜| 国产成人精品免费视频网站| 国产亚洲精品久| 97久久超碰国产精品| 亚洲三级小视频| 欧美性猛交xxxxxx富婆| 亚洲成av人综合在线观看| 宅男在线国产精品| 久久国产夜色精品鲁鲁99| 久久精品亚洲乱码伦伦中文| 成人综合激情网| 亚洲精品一卡二卡| 欧美一区二视频| 韩国女主播成人在线| 日韩精品一二区| 精品欧美一区二区三区精品久久| 国内不卡的二区三区中文字幕| 中文字幕成人av| 91福利小视频| 久久97超碰色| 亚洲欧洲成人精品av97| 欧美日韩三级一区| 精品午夜久久福利影院| 日韩一区欧美一区| 911精品国产一区二区在线| 麻豆精品蜜桃视频网站| 国产精品久久久久久福利一牛影视| 91福利精品视频| 黄一区二区三区| 悠悠色在线精品| 久久精品人人做人人爽97| 在线影院国内精品| 国产综合色产在线精品| 亚洲激情成人在线| 久久亚洲一区二区三区四区| 色综合久久久久综合99| 国产自产高清不卡| 亚洲国产日日夜夜| 国产精品另类一区| 欧美成人性福生活免费看| 色综合视频在线观看| 精品无人区卡一卡二卡三乱码免费卡| 亚洲欧美国产高清| 国产亚洲欧美一区在线观看| 欧美日韩一区二区电影| 成人毛片老司机大片| 蜜桃视频在线观看一区| 亚洲午夜免费电影| 国产精品色哟哟网站| 精品国产一二三| 欧美日韩国产天堂| 色欧美乱欧美15图片| 国产91高潮流白浆在线麻豆| 美国十次综合导航| 天堂午夜影视日韩欧美一区二区| 一区精品在线播放| 国产午夜亚洲精品理论片色戒| 欧美精品电影在线播放| 91久久线看在观草草青青| 成人av资源在线观看| 国内精品国产三级国产a久久| 日韩专区欧美专区| 婷婷成人激情在线网| 一二三区精品视频| 亚洲视频1区2区| 亚洲免费在线观看| 自拍偷拍亚洲激情| 国产精品免费久久| 国产精品入口麻豆九色| 国产午夜久久久久| 国产亚洲人成网站| 久久久久国产精品麻豆ai换脸| 精品少妇一区二区三区在线播放| 欧美另类videos死尸| 欧美人动与zoxxxx乱| 精品视频123区在线观看| 一本大道综合伊人精品热热| 色综合久久88色综合天天免费| 91色.com| 在线视频欧美区| 欧美日韩精品综合在线| 欧美美女网站色| 91精品国产综合久久久蜜臀粉嫩 | 色猫猫国产区一区二在线视频| 丰满少妇在线播放bd日韩电影| 国产成人av福利| av成人老司机| 在线免费一区三区| 欧美精品色综合| 亚洲精品在线观看视频| 国产亚洲婷婷免费| 亚洲欧美一区二区三区久本道91 | 中文字幕欧美三区| 亚洲婷婷在线视频| 亚洲制服丝袜一区| 青青草97国产精品免费观看无弹窗版 | 久久奇米777| 亚洲国产成人一区二区三区| 亚洲狼人国产精品| 日本一道高清亚洲日美韩| 国产一区二区中文字幕| 成av人片一区二区| 欧美日韩美少妇| 国产视频一区在线观看| 亚洲免费观看高清| 青草av.久久免费一区| 成人免费看片app下载| 色噜噜夜夜夜综合网| 日韩一级黄色大片| 中文字幕一区二区三区在线播放| 亚洲国产日韩综合久久精品| 久88久久88久久久| 色婷婷av一区二区三区之一色屋| 日韩午夜激情av| 中文字幕国产精品一区二区| 亚洲成av人影院| 国产成人在线观看| 欧美男同性恋视频网站| 久久久99精品免费观看| 亚洲国产另类精品专区| 国产成人av资源| 欧美高清视频一二三区| 国产精品免费aⅴ片在线观看| 日韩高清电影一区| 91一区在线观看| 久久久久久久久久久久久女国产乱| 亚洲综合激情小说| 成人午夜电影久久影院| 日韩亚洲欧美在线| 亚洲黄色av一区| 成人高清在线视频| 欧美成人一区二区| 亚洲国产精品久久久久秋霞影院 | 91在线码无精品| 精品免费日韩av| 天天综合色天天| 91在线国内视频| 中文字幕不卡在线播放| 九九精品一区二区| 777xxx欧美| 亚洲国产欧美在线| 日本乱码高清不卡字幕| 国产精品久久久久aaaa樱花| 韩国在线一区二区| 日韩精品一区二区三区四区视频 | 亚洲色图欧美激情| 成人精品鲁一区一区二区| 久久久国产一区二区三区四区小说 | 亚洲美女淫视频| 成人爱爱电影网址| 国产欧美精品日韩区二区麻豆天美| 麻豆国产一区二区| 日韩欧美第一区| 极品美女销魂一区二区三区免费| 在线电影院国产精品| 亚洲bt欧美bt精品777| 在线观看www91| 亚洲一区中文日韩| 欧美性生活大片视频|