3.5.2.21 Mean


Description

Returns the average of a vector.

Notes:

Mean function calculates average by column. If you want to calculate the average of multiple datasets by row, you can use syntax sum(vd) to sum datasets by row and generate temporary datasets of related statistics values, and then use _mean to get the meanu value. See the sum() function for more information.

Syntax

double Mean(dataset vd)

Parameters

vd

A range, dataset or column.

Return

Returns the average of specified argument.

Example

double aa=mean(col(A));
aa=; //Should return the average value of the specified column.

See Also

Median,Min,Max,Total