Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
paciorek committed Nov 14, 2023
1 parent c46bb9e commit ad5fd4e
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions _freeze/units/unit11-optim/execute-results/html.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions _freeze/units/unit11-optim/execute-results/tex.json

Large diffs are not rendered by default.

Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-12-output-2.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-2-output-1.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-2-output-2.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-2-output-4.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-3-output-1.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-4-output-1.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-7-output-1.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-7-output-2.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-8-output-1.pdf
Binary file not shown.
Binary file modified _freeze/units/unit11-optim/figure-pdf/cell-9-output-1.pdf
Binary file not shown.
3 changes: 1 addition & 2 deletions units/unit11-optim.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,7 @@ xbar = np.mean(xs[:2], axis=0)
plt.text(xs[2, 0], xs[2, 1], 'x[p+1]')
plt.plot(xbar[0], xbar[1], 'ro')
# Reflection
xr = (1 + alpha) * xbar - alpha * xs[2]
plt.plot(xr[0], xr[1], 'ro', marker='o', markersize=4, color='red')
Expand Down Expand Up @@ -1458,8 +1459,6 @@ plotseg(xc, 0, 'blue')
plotseg(xc, 1, 'blue')
plotseg(0, 1, 'blue')
### HERE - wrong purple point xs is wrong
# Shrinkage
xs[1,:] = delta * xs[1,:] + (1 - delta) * xs[0,:]
xs[2,:] = delta * xs[2,:] + (1 - delta) * xs[0,:]
Expand Down

0 comments on commit ad5fd4e

Please sign in to comment.