I have a measurement computation that results in an array X that I want to control under the following logic :
parameter A = 5, parameter B = 12.
for A=5, B=12
if size(X) not equal to 3, then increment A = A+1, else record average value of X
(continue incrementing A until size(X) = 3. record this average value of X number, call it X1)
now increment B = B+0.2
set A back to 5 & repeat : increment A until
size(X)=3. record this average value of X number, call it X2)
repeat above until B = 13.
There should be 6 X numbers (X1, X2, ... X6). Remove the
max & min of this X data set. Average the remaining X's. This is
the final result.
I'm having difficulty coming up with a clean simple way to do this
(especially the part where the X data is simply dropped if it's size is
not equal to 3).
Any advice would be appreciated.
Thanks,
ak