r - Finding baseline (reference) of nosiy data and lag/lead between 2 signals -


i have 2 datasets vary time shown in figure - sa – red , sb – black . doing analysis in r. entire dataset , segment of data 30 - 31 s shown below ---

raw signals

enter image description here

as can see figures, datasets appear similar 1 dataset leads (or lags) other dataset in time. downward peaks appear shifted in time 1 of signals wrt other. determine following –

1. baseline value (reference) 2 signals – there statistical method find out this? there signal processing techniques need applied before determining baseline? sa, baseline more noisy , shifts , down – seems difficult assume constant reference line

2. time lag / lead between these 2 signals – tried make reference line constant removing data points above approximate baseline , replacing approx baseline value. found out values sa1, sa2, sa3, sa4, ..etc. similarly, found sb1 ,sb2, sb3, sb4,… etc

filtered data above approximate baseline enter image description here

2a. there way can map sa1 sb1, sa2 sb2..and on? idea calculate (sa1-sb1), (sa2-sb2),… , find out average time lag/ lead 2 signals on entire dataset. understand method approximate, since resolution lost while assuming baseline based on eyeballing.

2b. there method calculating time lag/ lead? how can extract exact times - sa1,sa2.. etc @ signal drops below reference line , comes reference line? cross correlation work? how use noisy signals?

3.the frequency of downward peaks


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -