Noise Seed

Hi,

 

I am trying to add in an error model into my simulation. I come across this term "seed" in many articles and i do not have much knowledge on it. While i understand that this is needed to generate random noise values but i wish to know how do i define/calculate this "seed" value? Please advise.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • It's just a number. Most random() functions require a "seed" number - because they aren't truly random-number functions they are just produce pseudo-random number sequences. If you run the program twice with the same value as "seed", you will get the same sequence of numbers from random(). The solution is to choose a different number for "seed" each time - perhaps get the system time and use the number of microseconds as the "seed" value to the first random() call.
  • It's a starting value that initializes the pseudorandom sequence generator. Two identical seeds will produce the same "random" sequence, so if you want to have this random noise to be different every time you run the simulation, then you'll have to provide a different seed every time (for example current time). If that is not a problem, use a constant instead, e.g. 0.
This reply was deleted.

Activity

DIY Robocars via Twitter
Friday
DIY Robocars via Twitter
Friday
DIY Drones via Twitter
Thursday
DIY Robocars via Twitter
RT @Heavy02011: @diyrobocars : A Home-brew computer club* for Connected Autonomous Driving on Jan 23rd, 2021 https://www.meetup.com/Connected-Autonomous-Driving/events/275728684/ #Meetu…
Thursday
DIY Robocars via Twitter
Thursday
David Hori liked Isabella Domi's profile
Wednesday
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ Autonomous Driving Assembly at #rC3. join us at https://rc3.world/rc3/assembly/diyrobocars-f1tenth/ ⁦@f1tenth⁩ ⁦@DAVGtech⁩ ⁦@DWalmroth⁩…
Jan 11
DIY Robocars via Twitter
RT @chr1sa: New car designs coming for our next @DIYRobocars @donkey_car virtual race on the 23rd. Choose any one you want at race time Le…
Jan 11
DIY Robocars via Twitter
RT @RoboticMasters: Thanks to @EllerbachMaxime and the Sydney Uni Capstone Students the @donkey_car @diyrobocars simulator is getting a ma…
Jan 11
DIY Robocars via Twitter
Jan 6
DIY Robocars via Twitter
Dec 28, 2020
DIY Robocars via Twitter
An interesting line-following simulator to use with with your robocars: https://github.com/ron-grant/LFS
Dec 23, 2020
DIY Robocars via Twitter
Dec 23, 2020
DIY Robocars via Twitter
An improved version of the @IntelAIResearch OpenBot: https://diyrobocars.com/2020/12/14/an-improved-version-of-the-intel-openbot/
Dec 14, 2020
DIY Drones via Twitter
An improved version of the Intel OpenBot https://ift.tt/2KkHT8Q
Dec 14, 2020
DIY Robocars via Twitter
Dec 10, 2020
More…