Exemple #1
0
 def test_divide_by_stds_masked_and_channel_masked(self):
     divide_by_stds(self.X, [6.27992834], mask=self.M,
                    channel_mask=self.cm)
     stds = get_stds(self.X, mask=self.M, channel_mask=self.cm)
     assert_allclose(stds, [1.])
     stds = get_stds(self.X, mask=self.M)
     assert_allclose(stds, [6.27992834, 1.0])
Exemple #2
0
 def test_divide_by_stds_masked(self):
     divide_by_stds(self.X, [6.27992834, 6.27992834], mask=self.M)
     stds = get_stds(self.X, self.M)
     assert_allclose(stds, [1.0, 1.0])
Exemple #3
0
 def test_divide_by_stds(self):
     divide_by_stds(self.X, [6.90410506, 6.90410506])
     stds = get_stds(self.X)
     assert_allclose(stds, [1.0, 1.0])
Exemple #4
0
 def test_divide_by_stds_channel_masked(self):
     divide_by_stds(self.X, [6.90410506], channel_mask=self.cm)
     stds = get_stds(self.X, channel_mask=self.cm)
     assert_allclose(stds, [1.0])
     stds = get_stds(self.X)
     assert_allclose(stds, [6.90410506, 1.0])
Exemple #5
0
 def test_divide_by_stds_masked(self):
     divide_by_stds(self.X, [6.27992834, 6.27992834], mask=self.M)
     stds = get_stds(self.X, self.M)
     assert_allclose(stds, [1.0, 1.0])
Exemple #6
0
 def test_divide_by_stds(self):
     divide_by_stds(self.X, [6.90410506, 6.90410506])
     stds = get_stds(self.X)
     assert_allclose(stds, [1.0, 1.0])
Exemple #7
0
 def test_divide_by_stds_masked_and_channel_masked(self):
     divide_by_stds(self.X, [6.27992834], mask=self.M, channel_mask=self.cm)
     stds = get_stds(self.X, mask=self.M, channel_mask=self.cm)
     assert_allclose(stds, [1.])
     stds = get_stds(self.X, mask=self.M)
     assert_allclose(stds, [6.27992834, 1.0])
Exemple #8
0
 def test_divide_by_stds_channel_masked(self):
     divide_by_stds(self.X, [6.90410506], channel_mask=self.cm)
     stds = get_stds(self.X, channel_mask=self.cm)
     assert_allclose(stds, [1.0])
     stds = get_stds(self.X)
     assert_allclose(stds, [6.90410506, 1.0])