how to convert an array of non regularly interleaved coordinates to a matrix of weights using interpolation to obtain uniform sampling
I have an array of coordinates each one with an associated timestamp. Something like:
[
{ x: 100, y: 150, ts: 56 },
{ x: 110, y: 145, ts: 75 },
{ x: 105, y: 150, ts: 103 }
]
The timestamps ts
s are the amount of milliseconds since the start of the measurements. The coordinates x, y correspond to interactions of an user in a screen. I need to build a heatmap of where the user interacted. For example, if all the coordinates are in the center then I should get a patch in the middle, if the interactions are distributed over an horizontal axis then I should end up with a line in the middle.
How can I go from an array of this sort to a discrete matrix of weights? I was told I could interpolate the data as to obtain an uniform sampling, but I don't really understand what that means. I would also share some code but I don't have any since I don't know where to begin at. I'm using Python.
Topic interpolation sampling python statistics
Category Data Science