This code replicates the fingerprint generation procedure of BANDANA – Body Area Network Device-to-device Authentication using Natural Gait 2017 paper (https://arxiv.org/pdf/1612.03472.pdf). Note the Madgwick's algorithm is not fully implemented.
Bandana.ipynb contains a sample output.