avg#

swordfish.function.avg()#

Calculate the average of X.

  • If X is a vector, calculate the average of X.

  • If X is a matrix, calculate the average of each column and return a vector.

  • If X is a table, calculate the average of each column and return a table.

Parameters:

X (Constant) – A scalar/pair/vector/matrix/table.