-
Help with expression to average trackers
Hi,
I’ve been given an expression to average the results from multiple stabilisers. Except that I keep gettin an error saying
“AE warning: invalid numeric result (divide by zero?)
Error occured at line 15”As I didn’t write this myself, any help with this would be great! I am basically highlighting _______, and pick whipping to each tracker/stabiliser result. Then numOfStabilizers = 0; changing 0 to the amount of stabilisers.
//expression begins
apArr = [_______,________,_______ ];
numOfStabilizers = 0;
x = 0;
y = 0;for(i = 0; i <= apArr.length - 1; i++) { numOfStabilizers++; x += apArr[i][0]; y += apArr[i][1]; } [x,y]/numOfStabilizers //end