Question
Mean of array problem
- August 25, 2010
- 4 replies
- 8111 views
Hello folks,
I'm facing a frustrating problem as, to me, my approach appears straight forward and therefore watertight. It is as follows:
- I've got some measurement data from which I'd like to exclude the initial measurement points as they merely show the start up of a process and I'm interested in the established process (the velocity of air in a wind tunnel in my case)
- I extract a subset of measurement points by giving a start and stop value for the data.
- A range variable is defined by these start and stop values. This way I'm able to control the extraction and the visualisation in a XY plot.
- I calculate the mean of this subset.
- An array is defined that contains in each element the mean value. This is done to visualise the mean in relation to the data points
- Both sets are displayed in a XY plot with i as tzhe range variable
As apparent in the attached file, the range doesn't work for both. One array display (VA) appears to stop at the index of its own array (at 100) instead at the index as defined by i (145). Moreover, the average is biased.
Weird!?
The way I see it, the subset VA and the average array mVA should start and stop at the same index. Perhaps this is the culprit. Does anybody have an idea?
Thanks in advance for any help
Raiko

