Heart_signal_from_fNIRS This function compute the heart signal from the optical density signals of a fNIRS device. It uses the light sequence of the fNIRS sources to recover the original sampling frequency of the device.