Take values from several arrays with nearest neighbour matching [message #92897] |
Fri, 18 March 2016 06:55  |
Matt G
Messages: 4 Registered: February 2016
|
Junior Member |
|
|
Hi.
I've got a set of different data, sampled at different time rates. I want to find the value of each at 0.01s intervals, but not all are measured at every 0.01 multiple. Is it possible to do some sort of nearest neighbour approach, where I create a reference time array (0 to 1, 0.01 intervals) and match each of these points to their closest time match in the other data sets, then take the values of data at each point from those?
Thanks
|
|
|
Re: Take values from several arrays with nearest neighbour matching [message #92899 is a reply to message #92897] |
Fri, 18 March 2016 07:32  |
Matt G
Messages: 4 Registered: February 2016
|
Junior Member |
|
|
On Friday, March 18, 2016 at 1:55:25 PM UTC, Matt G wrote:
> Hi.
>
> I've got a set of different data, sampled at different time rates. I want to find the value of each at 0.01s intervals, but not all are measured at every 0.01 multiple. Is it possible to do some sort of nearest neighbour approach, where I create a reference time array (0 to 1, 0.01 intervals) and match each of these points to their closest time match in the other data sets, then take the values of data at each point from those?
>
> Thanks
EDIT: similar to the last part here(http://www.idlcoyote.com/code_tips/locatevar.html) except I want to do it for an array of numbers, not just one. Suspect I'm just struggling with array manipulation/data storage.
|
|
|