Showing posts with label randn. Show all posts
Showing posts with label randn. Show all posts

Monday, January 12, 2009

Added new BoxMuller.java Class

I have added a new class called BoxMuller.java. Its sole static method randn(float mu, float sigma) returns a random floating-point number drawn from a normal distribution of mean mu and standard deviation sigma. Essentially, it produces the same result as Matlab's randn function.

The BoxMuller.randn method is used in the MCL.java class to add noise to a newly chosen particle in the chooseNewPoseSet method. I have corrected this method so that it now refers to the randn method.