Finding scaling factor for two signals to have same shape
9 次查看(过去 30 天)
显示 更早的评论
I have two signals (see figure) with differences mostly in amplitude. I need to find optimal scaling factor so they look the same as much as possible. Do you know any criteria I can use? I dont want any spectral analysis. I tried root mean square error between curves and ratio of maxima. Thank you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146781/image.jpeg)
1 个评论
采纳的回答
John D'Errico
2015-1-13
Sigh, what the human eye sees as similar looking signals is not always so clear to a computer. There are issues with...
- Baselines. It seems that one set of curves takes off from zero, the other does not.
- Shapes. The curves do have seriously different shapes. While they look similar, the peaks have differing widths. The set on top seems to be considerably wider in each peak than those below.
- Time shifts. I'll call the x axis time, although I have no reason to conclude it is time. Regardless, the peaks do not seem to be perfectly aligned with those from the other set.
- Peak to peak variability. Should each of these peaks be adjusted separately? DPB points out what appear to be trends in the peak heights. I'll just call it variability. Regardless, there appears to be a fair amount of variability between peak heights in each set, and that pattern does not seem terribly consistent between the two sets. Any such conclusion based on such a small sample is statistically virtually meaningless of course.
You might deal with some of these issues simply enough, at least in theory. For example, the differing widths of those peaks might be accounted for if there were some blurring activity occurring. Thus convolve the bottom set of peaks with a Gaussian spread function, and the resulting shapes might more accurately mirror the set above.
My point in all this is, in order to model what you see, you need to postulate a model that accounts for these differences. The better the model, the better the convergence between the two sets of curves.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!