Home > other >  Help! Not made up meowed (python!!!!!! )
Help! Not made up meowed (python!!!!!! )

Time:09-27

Based on random walk instance, use ndarray and random number generating function to simulate an object in three-dimensional space of random walk process,
1) create the 3 x 10 of two-dimensional arrays, records every step up the shaft of the three moving object distance, in each of the axial distance moved to obey the standard normal distribution (expectation is 0, variance of 1), line sequence 0 respectively corresponding to the x, y, and z axis;
2) statistical objects reach the farthest distance in the z axis; (hint: use the abs () the absolute value function after every step of the z axis movement the location of the absolute value, and then seeks maximum distance)
3) statistical objects in 3 d space distance, the recent distance,
  • Related