Skip to content

Commit a686baa

Browse files
committed
added missing broadcasting figure
1 parent fccb9a9 commit a686baa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ with $n$ the normalized version of your signal of length $N$. The time shift $k$
4242

4343
For example the autocorrelation of an input signal $x=(2,3,-1)$ is $R_{xx}=(c_{-2}, c_{-1}, c_0, c_1, c_2)=(-2, 3, 14, 3, -2)$ and is symmetrical.
4444

45-
>>> In the following table you can see an illustrative depicition on how the $c_k$'s are calculated.
45+
>> In the following table you can see an illustrative depicition on how the $c_k$'s are calculated.
4646
The header contains the input signal x padded with 0's on its sides.
4747
For autocorrelation, we compute correlation between $x$ and $x$ itself.
4848
So in visual terms, we slide $x$ from left to right across itself.
@@ -55,11 +55,11 @@ At each step we compute one $c_k$ by first multiplying the numbers that are alig
5555
| | | 2 | 3 | -1 | | | 4 + 9 + 1 = 14
5656
| | | | 2 | 3 | -1 | | 6 - 3 + 0 = 3
5757
| | | | | 2 | 3 | -1 | -2 + 0 + 0 = -2
58-
>>>As you can see, when reading from top to bottom we get the correct solution $R_{xx}=(-2, 3, 14, 3, -2)$.
58+
>> As you can see, when reading from top to bottom we get the correct solution $R_{xx}=(-2, 3, 14, 3, -2)$.
5959
6060
So here are your tasks:
6161
1. Implement the `auto_corr` function as described above.
62-
>>> The function expects $x$ to be normalized. That means, that no normalization is done inside the `auto_corr`-function. Instead you normalize the input signal before calling `auto_corr`.
62+
>> The function expects $x$ to be normalized. That means, that no normalization is done inside the `auto_corr`-function. Instead you normalize the input signal before calling `auto_corr`.
6363
2. Check your implementation using `nox -s test`.
6464
If the test passes you can use `np.correlate` for efficiency in the following exercises!
6565

@@ -89,7 +89,7 @@ Now we want to compare this autocorrelation to the one of a random signal.
8989
$\pi \in \mathbb{R}$ denotes Pi, $\mu \in \mathbb{R}$ the mean and $\sigma \in \mathbb{R}$ the standard deviation for a random variable $X$.
9090
$e^x$ denotes the exponential function.
9191
A random variable $X$ having a gaussian pdf is described as gaussion or normal distribution $\mathcal{N}$.
92-
>>> Remark: In the notation $\phi_1(x | \mu, \sigma)$, x is the variable that is plugged into the function and $\mu$ and $\sigma$ are parameters which are needed to define the function and that are determined beforehand.
92+
>> Remark: In the notation $\phi_1(x | \mu, \sigma)$, x is the variable that is plugged into the function and $\mu$ and $\sigma$ are parameters which are needed to define the function and that are determined beforehand.
9393
2. Explore the behavior of $\mathcal{N}(\mu, \sigma)$ for different values of $\mu$ and $\sigma$.
9494
The Code for plotting the pdf's is already given.
9595

figures/broadcasting.png

69.2 KB
Loading

0 commit comments

Comments
 (0)