DADiSP Worksheet Functions > Function Categories > Series and Scalar Math > VMEAN

 

VMEAN

Purpose:

Returns the mean of one or more input arguments.

Syntax:

VMEAN(val1, val2, ..., valN)

valN

-

One or more series or scalars.

Returns:

A real, the mean of the input values.

Example:

vmean(10, 15, 20)

 

returns 15.

Example:

vmean({1, 2, 3}, {0, 4, 2}, {0, 3, 8})

 

returns 2.833333.

Example:

W1: gsin(100, 1/100, 1)^2

W2: gcos(1000, 1/1000, 1)^2

W3: gline(200, 1/200, 1, 0)

W4: concat(W1, W2, W3)

 

a = mean(W4);

b = vmean(W1, W2, W3);

 

a == b == 0.499615

Example:

W1: ravel(1..9, 3)

W2: {mean(W1)}

W3: {vmean(w1)}

 

W1 == {{1, 4, 7},

       {2, 5, 8},

       {3, 6, 9}}

 

W2 == W3 == 5

Remarks:

VMEAN with no input arguments uses the current Window.

 

Non-numeric arguments are ignored.

 

See AVGS or VAVGS to compute the point by point mean of the input values.

 

See SUM or VSUM to compute the sum of the input values.

See Also:

AVGS

MEAN

VAVGS

VMAX

VMIN

VSUM

VSUMS