Skip to content

Commit

Permalink
Update noise_removal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmos491 authored Nov 7, 2024
1 parent f33bef9 commit dc24f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noise_removal.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ def remove_noise(data, low_freq=None, high_freq=None):
data_values = np.sin(2 * np.pi * 0.01 * np.arange(100)) + 0.5 * np.random.randn(100)
data = pd.Series(data_values, index=date_range)

# Remove high and low frequency noise
filtered_data = remove_noise(data, low_freq=0.001, high_freq=0.05)
# Remove high and low frequency noise
filtered_data = remove_noise(data, low_freq=0.001, high_freq=0.05)

0 comments on commit dc24f73

Please sign in to comment.