I have 2 datasets each consisting of x (dependant variable) and y (independant variable) data. I need to interpolate y data from one data set to a common array of x and then apply a weighted average for each y data. The weighted average should vary in weight according to an array of percentages. The objective is to merge the two data sets of x,y values over an overlapping range to merge 2 curves so that they appear continues from one curve to another. I was able to code the interpolation part but not sure how to go about with the wieghted average part. Any help would be appreciated. Cheers!