Introduction - If you have any usage issues, please Google them yourself
Auxiliary Particle Filter implemented in C# (also known as condensation algorithm, Sequential Monte Carlo, etc..)
See Auxiliary Particle Filter by Pitt/Shephard 1998 for details on this algorithm. Will need to be modified for your use but should give a good start!