LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing unknown to references.

Hi all!

 

I am trying to write a code to quantitatively compare an unknown data set to multiple reference data sets, and then show which data set my unknown most closely resembles. It has been suggested that I use the interpolate 1D function but I have no idea how it works. Thanks for the help!

0 Kudos
Message 1 of 7
(2,964 Views)

You only need "interpolate array" if the x-values don't coincide between the datasets. Do they?

 

Interpolation does not compare anything. You could use it to resample and align, followed by e.g. taking e.g. a norm of the difference.

 

Do you have some typical sample data?

0 Kudos
Message 2 of 7
(2,947 Views)

What kind of comparison are you trying to do?  I'm not seeing how Interpolate 1D Array will help with this kind of problem.

 

Seems to me that you should probably just subtract you unknown from each of your reference data sets and then perform an RMS on the resulting array.  This will give you an idea of the error.  Which ever reference gives you the smallest error is the one that your unknown most closely resembles.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(2,943 Views)

Attached is a sample of my data. The x values for each reference set are different. 

0 Kudos
Message 4 of 7
(2,918 Views)

@Morpselynt wrote:

Attached is a sample of my data. The x values for each reference set are different. 


Doesn't tell me anything about how you want to compare them.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 7
(2,906 Views)

@Morpselynt wrote:

Attached is a sample of my data. The x values for each reference set are different. 


Maybe you should also attach a few reference data sets.

0 Kudos
Message 6 of 7
(2,904 Views)

It's similar in idea to a regulation system, you have a "Should" and a "Is"-value (techincally you have several "shoulds" to compare to). So the error between them should be the sum of the squared errors, and the least is your winner. Sum((Should(x)-Is(x))^2) where X goes through your series.

Something like that should work. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(2,889 Views)