How can I interpolate for a particular range of data?
Pranab
The actual problem is like this.
I have several set of x_data and y_data, where x_data is the control parameter, y_data is corresponding values. In different data set the x_data has different range with different Delta_X. Now I need to map this data to a two dimensional wave. Where I need evenly spaced x_data. That is why I need to interpolate all the data set for a fixed range of x_data with a fixed number of points.
Then, simply iterate a for loop where you interpret each of the other XY-pair waves based on your reference x-wave. One thing to note is that interpolate estimates a value between the two nearest points via a linear line. So if there is a large discrepancy between the delta_x values of your waves, you could end up with some rather odd looking data. If this is the case, you could use the lowest density x_wave as your reference, and basically discard the extra data from your other waves (the process would be the same).
December 13, 2012 at 07:42 am - Permalink
If you mean that you want to create an interpolated version of a subset of an XY pair, you must first create a 1D wave containing the subset. You can do this using the Duplicate /R operation.
After doing that you then can do the interpolation. Execute this for a discussion of interpolating XY pairs to waveform data:
Once you have done that you can store the resulting interpolated data in a column of a 2D wave using waveform assignment:
December 13, 2012 at 09:26 am - Permalink
Yes, I need to interpolate in a subset of XY pair. I want specific x_data values, say, 0, 0.1, 0.2, ... ,1 for all the data sets. Unfortunately, the recorded data are not in such nice form, they looks something like -0.106, 0.012, 0.097, 0.205...,1.011 this. So if I create subset of data, I will not get specific data points which I want, rather I will get 0.012,...., 1.011 and in-between equally spaced points.
December 14, 2012 at 12:44 am - Permalink
I think using this technique you don't need to create a subset of your input waves.
December 14, 2012 at 09:57 am - Permalink