Functional near-infrared spectroscopy (fNIRS) measures brain activity optically based on changes in cortical blood flow.
Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.