Navigation:  thinBasic Modules > STAT >

Stat_MeanHarmonic

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the harmonic mean of all ArrayVariable items.

 

Syntax

 

n = STAT_MeanHarmonic(ArrayVariable)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

ArrayVariable

Numeric Array

No

The array containing data

 

Remarks

 

This function will expect the name of a predefined array with all the necessary data already loaded.

 

The harmonic mean of a set of n numbers x1, x2, ..., xn is defined as follows:

 

 

Restrictions

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com