# Mean

int Mean (double inputArray[], int numberOfElements, double *mean);

## Purpose

Calculates the mean, or average, value of the input array. Mean calculates the mean using the following formula:

## Parameters

Input
Name | Type | Description
inputArray | double-precision array | Input array whose mean, or average, value is determined.
numberOfElements | integer | Number of elements used to find the mean.
Output
Name | Type | Description
mean | double-precision | Mean value of the input array.

## Return Value

Name | Type | Description
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.