A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

PS11.. Anyone having a problem with the visualize argument? From the problemset instructions I got the impression that if you set the visualize argument to False then the robot animation won't run - but it runs on mine whether it is True or False.

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Hi bwCA, it would help if you post your code so we can see what's going on. In short, I was able to use the visualize argument to enable (True) or disable (False) the visualization. In your runSimulation method, you need to actually implement this capability using the visualize argument. So you need to add "if visualize:" to everything that would call a ps11_visualize method. check out what I have below. http://dpaste.com/540983/

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    thnx, that's actually what I was asking, I kinda got the impression that it was already implemented then it didn't work and i couldn't see where it was being passed to or used by the robot visualization class and i got confused - anyway thhnx

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I am not sure I understand question 4 in problem # 4. Can any of you help me with what exactly they are asking and why computeMeans is useful?

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Hi frankanayet, For future reference, if you have a question, it's better to ask on a separate thread, since more people will see your post. If you attach to the current thread, only those that have replied to the thread gets notice. To answer your question, in problem set 11, problem #4, question 4. It's asking you to create a plot that shows 'how long a room takes to clean' as a function of 'the percentage clean'. You do this for 1,2,3,4,5 robots that are used to clean simultaneously. Let's call the number of robots simultaneously used, nBots, So you should get a plot with 5 lines, one for each nBots number of robots used. The x axis would be the 'percentage clean' and the y axis would be the mean time for all the trials done with 1 of the nBots numbers. I've attached a file with my output plot. The method computeMeans is useful because it calculate the means for each nBots separately. The mean is the average of all the cleaning time nBots used across all the trials. It produced 1 number per percentage clean, you can then use this to plot with. An example would be: using 2 robots (nBots=2), doing 5 trials, 100% coverage would generate a raw data of something like: nBots, trial, percentage clean, time 2, 1, 10%, 5 2, 1, 20%, 10 2, 1, 30%, 20 ... 2, 1, 100%, 50 2, 2, 10%, 4.5 2, 2, 20%, 11 2, 2, 30%, 19 ... 2, 5, 100% 54 Then computeMeans takes all the info and converted to something like: percentage clean, mean time across all 5 trials 10%, 4.9 20%, 10.2 30%, 19.3 ... 100% 52.345 This would produce one line in your final plot, namely the line for nBots=2.

    1 Attachment
  5. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.