LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Weighted average on interpolated data between x,y array over an overlapping range

Solved!
Go to solution
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!
0 Kudos
Message 1 of 3
(3,692 Views)

It would be able to be done with simple math. Check this out:

 

 

Vince M
Applications Engineer
Message 2 of 3
(3,653 Views)
Solution
Accepted by topic author justclouds
This idea has worked very nicely ... thank you so much!
0 Kudos
Message 3 of 3
(3,637 Views)