Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # answer to 6.3
- function altPredict(Xhat)
- red = 2
- blue = 1
- if (Xhat[2] > 37.669007)
- if (Xhat[1] > -96.090109)
- return blue
- else
- return red
- end
- else
- if (Xhat[1] > -115.577574)
- return red
- else
- return blue
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement