avr
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Compute the arithmetic mean (average). This function is implemented in two versions. The function avg is an alias for this function.
Returns the largest absolute value found in the arguments.
- Usage 1
avr(x)
- x
- a scalar, vector or matrix
- Result 1
- The result is the arithmetic mean of all elements of x
- Usage 2
avr(x, flag
- x
- a matrix
- flag</flag>: selects if the average of column vectrors (flag==0) or the row vectors (flag!=0) is requsted