Bin data to sinwave
2 views (last 30 days)
Show older comments
Is there a easy and computationally efficient way to group data according to a sin wave? So say I have 20,000 data points, that I want to group into bins following a sinwave, i.e. the data gets grouped by smaller amounts (say ~20) data points in the middle but into larger amounts on the edge (~100) where the sinwave is changing less as a function of time.
And I need to do this all very computationally efficient since I want to do it A LOT in real time. My current method I am doing seems overly complex, I feel like this should be easier.
1 Comment
Jan
on 4 Apr 2013
It depends. What kind of data are you talking of? Where do they come from? Are you talking about one period of a sin wave or does it contain more waved lengths? What is "the middle"? What is the edge? Actually I think that the derivative of the sin has a maximum at 0, but this would mean that 0 is not one of your "edges".
Answers (0)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox 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!