Home > RhinoScript Methods > Math Methods > Mean

Show Navigation Component

Mean

Returns the mean number, or average, from an array of numbers.

Syntax

Rhino.Mean (arrNumbers)

Parameters

arrNumbers

Required.  Array.  An array of numbers to analyze.

Returns

Number

The mean number if successful.

Null

If not successful, or on error.

Example

MsgBox Rhino.Mean(Array(1,2,3,4,5,6,7,8,9))

Also See

Deviation

Max

Median

Min

Sum