Talk:GuessFactor Targeting (traditional)

From Robowiki
Jump to navigation Jump to search

Archived discussion pages

Advanced Stuffs

How do I implement bin smoothing, weighting and other stuff? I don't get it. I used: p.nfshost.com/GFTTutorial.shtml to teach me Guess Factor Targeting. Sorry, I cant put it in a link, the captcha image won't load.

I don't think there is a rule but I'll try to give you some hints.

  • Bin Smoothing is to affect all (or some) bins depending on how close they are to the "exact" bin. If you are to update bin #12, then bins 11 and 13 are very close and get some data added to it too. A simple function may be bin[i] += 1 / (1 + Math.pow(index - i, 2));. You can see that the values added are 1, 1/2, 1/5, 1/10, ...
  • For weighting you can weight non-firing waves less than firing waves, where a firing wave is a wave that was shot at the same time as a real bullet was. Exact weights are unknown.
  • And you should probably add Rolling Average as well, it means dropping old data as new data comes in. It's implementation is straight forward with Paul Evans's magic formula.

Hope this helps. --zyx 16:52, 15 March 2009 (UTC)