LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

Mean

AnalysisLibErrType Mean (double inputArray[], ssize_t 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 [] Input array whose mean, or average, value is determined.
numberOfElements ssize_t Number of elements used to find the mean.
Output
Name Type Description
mean double 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.

Additional Information

Library: Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Log in to get a better experience