Skip to content

Commit

Permalink
Undo previous commit for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentTam committed May 11, 2019
1 parent ab68904 commit 6924433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 5_chapter/simpleHypothesisTest.jl
Expand Up @@ -16,11 +16,11 @@ plot(grid,pdf(dist0,grid),"b", label="Bolt type 15g")
plot(grid,pdf(dist1,grid),"g", label="Bolt type 18g")
plot([tau,gridMax],[0,0],"r",lw=3,label="Rejection region")

verts1 = [ [[tau,0.0]]; [[i,pdf(dist0,i)] for i in tau:0.1:gridMax]
verts1 = [ [[tau,0.0]]; [[i,pdf(dist0,i)] for i in tau:0.1:gridMax] ;
[[gridMax,0.0]] ]
poly1 = patch.Polygon(verts1, fc="blue", ec="0.5",alpha=0.2)

verts2 = [ [[gridMin,0.0]]; [[i,pdf(dist1,i)] for i in gridMin:0.1:tau]
verts2 = [ [[gridMin,0.0]]; [[i,pdf(dist1,i)] for i in gridMin:0.1:tau] ;
[[tau,0.0]] ]
poly2 = patch.Polygon(verts2, fc="green", ec="0.5",alpha=0.2)
ax.add_artist(poly1)
Expand Down

0 comments on commit 6924433

Please sign in to comment.