I have code for the following functions that may be worth merging in here (or perhaps in the legend DSP package)
add_noise
given some vector of noise and a signal, add noise to the signal. By default noise will be added starting at a random index in the noise vector. When the end of the noise vector is reached, it will wrap around to the start of the noise vector and keep adding until all of the signal has had noise added to it.
get_drift_time
get drift time of a signal, using a low and high threshold. I can also add relative thresholds, but haven't yet.
getA
gets the A value for A/E calculations form a signal. A two argument form also takes a time step, so that the maximum derivative of a signal is given, rather than the maximum difference.
Let me know if you're interested.
I have code for the following functions that may be worth merging in here (or perhaps in the legend DSP package)
add_noisegiven some vector of noise and a signal, add noise to the signal. By default noise will be added starting at a random index in the noise vector. When the end of the noise vector is reached, it will wrap around to the start of the noise vector and keep adding until all of the signal has had noise added to it.
get_drift_timeget drift time of a signal, using a low and high threshold. I can also add relative thresholds, but haven't yet.
getAgets the A value for A/E calculations form a signal. A two argument form also takes a time step, so that the maximum derivative of a signal is given, rather than the maximum difference.
Let me know if you're interested.