HW 3-6 Description - Sigma/Variance

 1 2 Just a quick note for clarification that might be useful to others...In the beginning of exercise 3-6 it says: # A good way to include noise in the sense step is to # add Gaussian noise, centered at zero with variance # of self.bearing_noise to each bearing. You can do this # with the command random.gauss(0, self.bearing_noise)  Which is certainly helpful. However, from the documentation for the function...help(random.gauss), the second parameter is expected to be the standard deviation, and not the variance (which is sigma ** 2): gauss(self, mu, sigma) method of random.Random instance Gaussian distribution. mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function. Not thread-safe without a lock around calls.  I guess that based on the text we are supposed to use the variance, which is ok for this exercise but you need to be very careful in practical applications. asked 10 Mar '12, 03:21 Jose Guedez 146●1●12 accept rate: 0%

 0 It was answered that it had to be standard deviation. answered 10 Mar '12, 03:52 Ftynse-2 7.0k●6●40●89
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×5,185
×183
×37
×22
×1