This zip-file contains matlab code for the IPI-D-TLS algorithm, as described in the paper
A. Bertrand and M. Moonen, "Low-complexity distributed total least squares estimation in ad hoc sensor networks"

-------------------------------------------------------------------------------------------------------------------------

1) In the folder "Visual demo", run the file "IPI_DTLS_DEMO.m" to see a demo of the IPI-D-TLS algorithm. The file can show a standard demo, or you can set the parameters of the algorithm yourself (dimensions, step size, network topology, etc.).


2) In the folder "Monte-Carlo (creates figures from paper)", the code can be found to reproduce the figures in the IPI-D-TLS paper. Note that you first have to run 

"PI_based_DTLS_montecarlo_vardimN.m"
and
"PI_based_DTLS_montecarlo_varSZmu.m"

which can take hours/days, and which will produce mat-files of more than 500 MB. Once these files are created, you can run

"create_figures.m"

to generate the figures from the paper.

