Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12262

Re: This Array Index is Invalid for This Array - NonMissingMean

$
0
0

I don't see any D^´2 in your file. Furthermore we would need your data file to see where the problem occurs.

 

BTW it's rather confusing and unclear to spread the calculations over six pages width! At least I won't look at that kind of sheet.

 

Nevertheless I can image why your routine fails if the argument is just a one column vector: cols(M) returns 1. Your for-loop therefore runs down from 1 to zero and at first you try to access M_column<1> which does not exist --> error

Changing the rouitine to the following should solve the problem (additionally the first assignement assures that filterNaN() will not fail because of the nonexistence of a NaN):

NonMissing.png


Viewing all articles
Browse latest Browse all 12262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>