This program is a simple wifi positioning demo, which uses WKNN (Weighted K-Nearest-Neighbor) algorithm. The repo also provides a wifi dataset in the data directory.
This program has been tested on Ubuntu 16.04. It has several dependecies.
You can simply install mlpack with the following command:
sudo apt-get install libmlpack-dev
But this may not have the most recent version of mlpack available. Or you can follow mlpack installation if you want to install with a manual build.
You can simply install Eigen with the following command:
sudo apt-get install libeigen3-dev
OpenCV is used to visualize the wifi positioning results. This library is optional.
Clone the repository and build:
git clone https://github.com/gjgjh/WifiPositioning
cd ~/WifiPositioning
mkdir build
cd build
cmake ..
make -j4
We provide a read wifi dataset in the data directory. The data was collected on the fourth floor of the Science Academic Building of Peking University, and the collection equipment was an ASUS computer. The detailed file format is here. A simple usage example can be found in the test directory.
The source code is released under GPLv3 license.
We are still working on improving the code reliability. For any technical issues or commercial inquiries, please contact GJH [email protected].