This folder contains sample Matlab source code for RF Tomographic single target tracking system. The sample uses simulated data and tracks single target who walks square trajectory in square layout. 

Authors: Xi Chen and Yunpeng Li, Computer Networks Lab, 
              ECE Department, McGill University, Monteal, Canada. 
Please contact: xi.chen8@mail.mcgill.ca if you have any questions. 

Description:
The on-line SMC tracking system operates in Matlab and consists of 7 Matlab files. 

 Main.m, is the matlab file that execute the complete algorithm, it calls function
getTrueTrajectory.m to generate target trajectory and function simData.m to generate
RSS data. Afterwards it calls function particleFilter.m to track target position and
function onlineEM.m to estimate unknown model parameters.

 getTrueTrajectory.m, is the function to generate simulated target trajectory.

 simData.m, is the function to generate simulated RSS values.

 particleFilter.m, is the function to track target locations using RSS values, it also
draws the tracked trajectory every loop. It also calls function multinomialR to do
resampling.

 onlineEM.m, is the function to estimate unknown model parameters, it executes
every L particle filtering runs.

 multinomialR.m, is the function to nish resampling procedure in particle filtering.

 L2distance.m, is the function to calculate link distance between two nodes.