コード例 #1
0
ファイル: test_control.py プロジェクト: TanDro/pyinduct
 def test_product_term(self):
     law = ct.LawEvaluator(ct.approximate_control_law(ct.ControlLaw([self.term3])))
     res = law(self.weights, self.weight_label)["output"]
コード例 #2
0
ファイル: test_control.py プロジェクト: TanDro/pyinduct
 def test_temp_term(self):
     law = ct.LawEvaluator(ct.approximate_control_law(ct.ControlLaw([self.term1])))
     res = law(self.weights, self.weight_label)["output"]
     self.assertTrue(np.equal(res, 6))
コード例 #3
0
ファイル: test_control.py プロジェクト: TanDro/pyinduct
 def test_spat_term(self):
     law = ct.LawEvaluator(ct.approximate_control_law(ct.ControlLaw([self.term2])))
     res = law(self.weights, self.weight_label)["output"]
     self.assertAlmostEqual(res, 0)
コード例 #4
0
ファイル: test_control.py プロジェクト: schwinma/pyinduct
 def test_spat_term(self):
     law = ct.LawEvaluator(
         ct.approximate_control_law(ct.ControlLaw([self.term2])))
     res = law(self.weights, self.weight_label)["output"]
     self.assertAlmostEqual(res, 0)
コード例 #5
0
ファイル: test_control.py プロジェクト: schwinma/pyinduct
 def test_temp_term(self):
     law = ct.LawEvaluator(
         ct.approximate_control_law(ct.ControlLaw([self.term1])))
     res = law(self.weights, self.weight_label)["output"]
     self.assertTrue(np.equal(res, 6))
コード例 #6
0
ファイル: test_control.py プロジェクト: schwinma/pyinduct
 def test_product_term(self):
     law = ct.LawEvaluator(
         ct.approximate_control_law(ct.ControlLaw([self.term3])))
     res = law(self.weights, self.weight_label)["output"]
コード例 #7
0
ファイル: test_control.py プロジェクト: rihe/pyinduct
 def test_temp_term(self):
     law = ct.LawEvaluator(ct.approximate_control_law(ct.ControlLaw([self.term1])))
     res = law(self.weights, self.weight_label)
     self.assertAlmostEqual(res, 6)
コード例 #8
0
ファイル: test_control.py プロジェクト: rihe/pyinduct
 def test_product_term(self):
     law = ct.LawEvaluator(ct.approximate_control_law(ct.ControlLaw([self.term3])))
     res = law(self.weights, self.weight_label)
     self.assertAlmostEqual(res, 1 * np.exp(1))