Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-01 17:11:53 +01:00 committed by GitHub
parent 12bd920e8b
commit b5e2d527a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,3 +121,19 @@ plt.show()
![figure 3](image3.png)
## Analyzing a test signal 
First we need a test signal. We will use a 50Hz sinus for that
```python
import numpy as np
import matplotlib.pyplot as plt
f_test: float = 50 # Hz
t_test: np.ndarray = np.arange(0, 1000) / 1000
test_data: np.ndarray = np.sin(2 * np.pi * f_test * t_test)
plt.plot(t_test, test_data)
plt.xlabel("time [sec]")
plt.ylabel("time series")
```
![figure 4](image4.png)