Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def test_product_term(self):
     law = ct.LawEvaluator(
         ct.approximate_control_law(ct.ControlLaw([self.term3])))
     res = law(self.weights, self.weight_label)["output"]