Esempio n. 1
0
 def test_2d_ndarray_add_noise_uniform(self):
     a = np.random.rand(8760, 2)
     b = add_noise(a, 2, 0.05)  # Gauss Markov noise
     assert isinstance(b, pd.DataFrame)
     assert (8760, 2) == b.shape
Esempio n. 2
0
 def test_add_noise_not_annual(self):
     a = np.random.rand(15)
     b = add_noise(a, 3, 0.05)
     assert isinstance(b, pd.Series)
Esempio n. 3
0
 def test_ndarray_add_noise_uniform(self):
     a = np.random.rand(8760)
     b = add_noise(a, 2, 0.05)  # Gauss Markov noise
     assert isinstance(b, pd.Series)