![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| By recitation Thursday. |
| Absolutely – post away! Mark Guzdial |
| If the question above is if a color component of a pixel can be 1.5, the answer is no. It has to be an integer between 0 and 255. For help on the distance function, see page. 123 and pages 145-147. Remember my advice on the first day of class: TRY EVERY EXAMPLE WE DO ON YOUR OWN! Yes, you can get help on the pre-quiz from wherever you want. You just have to learn it well enough to do the same kind of thing on your own tomorrow. Mark Guzdial |
| 30 is not less than 30, but try it in the command area and see what happens. Mark Guzdial |
| Look at the slides in http://coweb.cc.gatech.edu:8888/uploads/cs1315/24/LoopsForPictures.6.ppt. I explain how to use the commands like getPixel and getColor to CHECK if pixels change and by how much. It is hard to see what the changes are. That's why you need to look at individual pixels. Have you tried the Help in JES for figuring out how to use the Squeak MediaTools? Mark Guzdial |
| See the below suggestion: Try it. Mark Guzdial |
| Neither – you use the distance formula. Mark Guzdial |
| If you didn't do all of the examples, you may not have actually understood it. Take a look at What to do if you don't understand a program? Do you understand every example we've done such that you know what every variable's value is at any point? That's what's needed to really understand the programs. Mark Guzdial |
| I'm quite happy to help you through the midterm exam review. Start asking your questions about the problems, your guesses as to the solutions. Let's work it out. Mark Guzdial |
| Has anybody tried it? Make a picture, then p = getPixel(picture,1,1) setRed(p,1.5) print getRed(p). What does it say? That's your answer. Mark Guzdial |
| Nothing! You did it absolutely right! So what does that tell you what happens when you try to set the red to 1.5? Sounds like you get 1, not 2. Mark Guzdial |
| Uh-huh! |
| We are calculating the variance in two different ways. We do all the calculations ourself using column I, but when we use Excel's VAR formula, it does all that calculating for us Adam Wilson |
| Make sure that you only include what you mean to include in your calculations. When something is in the range 20-29, it is less than 30, but greater than 20. You need to take that into account in your formulas. Adam Wilson |
| You're just finding the min and max of weights in each fuel bracket. The main point is to include the error bars on your graph, so put your median calculations somewhere out of the way. Maybe around where you did your other on-the-side calculations Adam Wilson |
| Sorry, typo |
| You can delete the graph you made right before problem 8. The histogram (problem 9) isn't for more than 255 pieces of data.. - Error: this should not happen |
| Column D = Cylinders, and yes we want the info on cylinders, not MPG for problem 3 - Error: this should not happen |