Exemplo n.º 1
0
		public void boundries_conorm()
		{
			T_Norm norm = new sum_prod();
			Assert.Throws<ArgumentException>(delegate{norm.conorm(1.3, 0.5);}, "first");
			Assert.Throws<ArgumentException>(delegate{norm.conorm(1.0, 1.4);}, "second");
			Assert.Throws<ArgumentException>(delegate{norm.conorm(1.1, 1.4);}, "third");
		}
Exemplo n.º 2
0
		public void boundries_norm()
		{
			T_Norm norm = new sum_prod();
			Assert.Throws<ArgumentException>(delegate{norm.norm(-0.3, 0.5);}, "");
			Assert.Throws<ArgumentException>(delegate{norm.norm(0.0, -0.4);}, "");
			Assert.Throws<ArgumentException>(delegate{norm.norm(-0.1, -0.4);}, "");
		}
Exemplo n.º 3
0
		public void normal_conorm()
		{
			T_Norm norm = new sum_prod();
			Assert.AreEqual(0.65, norm.conorm(0.3, 0.5), "");
			Assert.AreEqual(0.7, norm.conorm(0.5, 0.4), "");
		}	
Exemplo n.º 4
0
		public void normal_norm()
		{
			T_Norm norm = new sum_prod();
			Assert.AreEqual(0.35, norm.norm(0.7, 0.5), "");
			Assert.AreEqual(0.4, norm.norm(0.5, 0.8), "");
		}