Maybe somebody here has an experience on working with 'NaN' values in Sage.
My situation is the following: I need to load some experimentally measured data into a list of float values. But unfortunately, the experimental data set is not "solid" - it has 'NaN' values somewhere inside.
What I currently need to perform first of all is to calculate the average value of a list slice. Preferably, simply using 'mean()' if it is possible.
So could somebody please give me an advice how to work with such arrays correctly?
asked Jul 31 '12v_2e
219 ● 1 ● 12 ● 30
You should remove the values NaN from your list and then use mean. It is a bit tricky, because of the following behavior
The answer may be found here. I reproduce what you want in your case
Asked: Jul 31 '12
Seen: 73 times
Last updated: Jul 31 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.