From 58c705bfc64fce81d80e6430be25bccaa84de7fc Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Sun, 1 Jan 2023 01:33:51 +0300 Subject: [PATCH] Project --- Esiur.Analysis.Test/FSoft.Designer.cs | 23 ++++++++++--- Esiur.Analysis.Test/FSoft.cs | 25 ++++++++++++++ Esiur.Analysis.Test/Program.cs | 33 ++++++++++++++++++- .../PublishProfiles/FolderProfile.pubxml | 13 ++++++++ 4 files changed, 88 insertions(+), 6 deletions(-) create mode 100644 Esiur.Analysis.Test/Properties/PublishProfiles/FolderProfile.pubxml diff --git a/Esiur.Analysis.Test/FSoft.Designer.cs b/Esiur.Analysis.Test/FSoft.Designer.cs index c7c3b26..c40b9e5 100644 --- a/Esiur.Analysis.Test/FSoft.Designer.cs +++ b/Esiur.Analysis.Test/FSoft.Designer.cs @@ -38,6 +38,7 @@ this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.textBox2 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // formsPlot1 @@ -51,7 +52,7 @@ // // button1 // - this.button1.Location = new System.Drawing.Point(545, 753); + this.button1.Location = new System.Drawing.Point(687, 757); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(183, 31); this.button1.TabIndex = 1; @@ -85,7 +86,7 @@ // // button2 // - this.button2.Location = new System.Drawing.Point(734, 753); + this.button2.Location = new System.Drawing.Point(876, 757); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(193, 31); this.button2.TabIndex = 5; @@ -95,7 +96,7 @@ // // textBox1 // - this.textBox1.Location = new System.Drawing.Point(116, 753); + this.textBox1.Location = new System.Drawing.Point(258, 757); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(176, 27); this.textBox1.TabIndex = 6; @@ -103,7 +104,7 @@ // // button3 // - this.button3.Location = new System.Drawing.Point(314, 753); + this.button3.Location = new System.Drawing.Point(456, 757); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(143, 31); this.button3.TabIndex = 7; @@ -123,18 +124,29 @@ // // textBox2 // - this.textBox2.Location = new System.Drawing.Point(472, 755); + this.textBox2.Location = new System.Drawing.Point(614, 759); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(67, 27); this.textBox2.TabIndex = 9; this.textBox2.Text = "100"; this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(23, 730); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(205, 80); + this.label1.TabIndex = 10; + this.label1.Text = "Ahmed Zamil\r\nNahrain University\r\nSoft Computing Class of 2022\r\nDr. Osama Ali Awad" + + ""; // // FSoft // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1291, 828); + this.Controls.Add(this.label1); this.Controls.Add(this.textBox2); this.Controls.Add(this.button4); this.Controls.Add(this.button3); @@ -165,5 +177,6 @@ private Button button3; private Button button4; private TextBox textBox2; + private Label label1; } } \ No newline at end of file diff --git a/Esiur.Analysis.Test/FSoft.cs b/Esiur.Analysis.Test/FSoft.cs index 325b5f5..11c2287 100644 --- a/Esiur.Analysis.Test/FSoft.cs +++ b/Esiur.Analysis.Test/FSoft.cs @@ -1,3 +1,28 @@ +/* + +Copyright (c) 2022 Ahmed Kh. Zamil + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ + + using Esiur.Analysis.DSP; using Esiur.Analysis.Fuzzy; using Esiur.Analysis.Optimization; diff --git a/Esiur.Analysis.Test/Program.cs b/Esiur.Analysis.Test/Program.cs index fa0a47a..127cef6 100644 --- a/Esiur.Analysis.Test/Program.cs +++ b/Esiur.Analysis.Test/Program.cs @@ -1,5 +1,30 @@ using System.Diagnostics; using Esiur.Analysis.DSP; +using Esiur.Analysis.Signals; +/* + +Copyright (c) 2022 Ahmed Kh. Zamil + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ + using Esiur.Analysis.Signals.Codes; namespace Esiur.Analysis.Test @@ -21,7 +46,13 @@ namespace Esiur.Analysis.Test var seq = Generators.GenerateSequence(1, 7); - + var res = Capacity.ComputeOutage(1, new Capacity.CSI[] + { + new Capacity.CSI(0.1, 0.1), + new Capacity.CSI(1, 0.2), + new Capacity.CSI(3.16, 0.3), + new Capacity.CSI(10, 0.4), + }); // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); diff --git a/Esiur.Analysis.Test/Properties/PublishProfiles/FolderProfile.pubxml b/Esiur.Analysis.Test/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..0cfb7f2 --- /dev/null +++ b/Esiur.Analysis.Test/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Release + Any CPU + C:\Users\ahmed\OneDrive\Desktop\PhD\Soft\Assignment + FileSystem + <_TargetId>Folder + + \ No newline at end of file