How do I measure density of data points within a window in plots such as the following?

2 vues (au cours des 30 derniers jours)
James Morris
James Morris le 12 Août 2019
Commenté : James Morris le 13 Août 2019
Below I have a plot of (x,y) coordinate data for the trajectory of an object.
What is the best way to measure density of data points within windows of say 50 as I progress along the trajectorys path?
Thanks
  7 commentaires
dpb
dpb le 12 Août 2019
I guess it depends upon what he's really wanting -- which I'm not all that sure about. If he's following the trajectory, then binning 50 points is really just taking 50 points at a time from the beginning of the array irrespective of what the x coordinate really is. If it is actually using x, then he's got the start and the end of the trip glommed together at the first bin and that doesn't seem right on retrospect. That doesn't seem to make any sense of how to look at the data in any fashion I can think of.
James Morris
James Morris le 13 Août 2019
Sorry, let me explain it better. The trajectory plotted is the (x,y) coordinates of a hand as it enters a PIN on a keypad. The 4 clusters you can see roughly between x coordinates 500-620 correspond to keypress frames because the hand isn't in motion at those points. I want to be able to move along the array of x,y coordinates (from start to end of trajectory) and measure density over a window of say 25 x coordinates in length. Thus these clusters should then be highlighted and can be identified as the keypress frames. I aplologize, my initial idea of binning 50 points was a mistake.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by