george seifert Posted June 9, 2009 Report Share Posted June 9, 2009 What's the best way to compute a linear fit on data that contains NaN values? In our data acquisition we occasionally get some invalid data that gets passed along (by my VIs) as NaN. This data then gets fed to the Linear Fit Coefficients VI which gives NaN results if any of the inputs are NaN. George Quote Link to comment
Antoine Chalons Posted June 9, 2009 Report Share Posted June 9, 2009 QUOTE (george seifert @ Jun 8 2009, 04:09 PM) What's the best way to compute a linear fit on data that contains NaN values? In our data acquisition we occasionally get some invalid data that gets passed along (by my VIs) as NaN. This data then gets fed to the Linear Fit Coefficients VI which gives NaN results if any of the inputs are NaN. George Hi I usually use OpenG array functions to do that. I've made a feature request to NI to have an option on math function "ignore NaN" but well... I can understand that's it's not on their priority list. http://lavag.org/old_files/monthly_06_2009/post-7452-1244471808.png' target="_blank"> Hope this helps Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.