Exemplo n.º 1
0
    def test_std_scaling(self):
        sum_obs = SummaryObservation("WWCT:OP_X", "WWCT:OP_X", 0.25, 0.12)

        active_list = ActiveList()
        sum_obs.updateStdScaling(0.50, active_list)
        sum_obs.updateStdScaling(0.125, active_list)
        self.assertEqual(sum_obs.getStdScaling(), 0.125)
Exemplo n.º 2
0
 def test_std_scaling(self):
     sum_obs = SummaryObservation("WWCT:OP_X" , "WWCT:OP_X" , 0.25 , 0.12)
     
     active_list = ActiveList()
     sum_obs.updateStdScaling(0.50 , active_list)
     sum_obs.updateStdScaling(0.125 , active_list)
     self.assertEqual( sum_obs.getStdScaling() , 0.125 )
Exemplo n.º 3
0
    def test_create(self):
        sum_obs = SummaryObservation("WWCT:OP_X", "WWCT:OP_X", 0.25, 0.12)

        self.assertEqual(sum_obs.getValue(), 0.25)
        self.assertEqual(sum_obs.getStandardDeviation(), 0.12)
        self.assertEqual(sum_obs.getStdScaling(), 1.0)
Exemplo n.º 4
0
    def test_create(self):
        sum_obs = SummaryObservation("WWCT:OP_X" , "WWCT:OP_X" , 0.25 , 0.12)

        self.assertEqual( sum_obs.getValue() , 0.25 )
        self.assertEqual( sum_obs.getStandardDeviation() , 0.12 )
        self.assertEqual( sum_obs.getStdScaling() , 1.0 )