How to normalize curves with multiple peaks such that each peak will be 1 and each valley will be 0?
Show older comments
Hello,
I am looking for a way to normalize curves with multiple peaks such that each local maximum and minimum will be set to 1 and 0 respectively, and that the values between the maxima and minima will be set accordingly.
Thanks,
Haguy.
2 Comments
dpb
on 20 Jan 2019
Only thing comes to mind would be to find each max/min pair and compute the necessary factor for those positions and then interpolate that scaling factor between each.
Providing an example data set would probably be beneficial.
Haguy Wolfenson
on 20 Jan 2019
Accepted Answer
More Answers (2)
Sargondjani
on 20 Jan 2019
0 votes
Yeah, you would have to calculate a scaling factor for each peak/trough. In one dimension you can then use the scaling factor for each interval. In multiple dimensions you would have to interpolate the scaling factor.
1 Comment
dpb
on 20 Jan 2019
That would be discontinuous tho, between the sections excepting in very unusual circumstances.
xiaoxiaoliu xiaoxiaoliu
on 28 Aug 2020
0 votes
How to normalize curves with multiple peaks such that each peak will be 1 and each valley will be -1?
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


