# RMS

Advanced Analysis Library Only

AnalysisLibErrType RMS (double inputArray[], int numberOfElements, double *rootMeanSquared);

## Purpose

Calculates the root-mean-square (rms) value of the input array. RMS uses the following formula to find the rms value:

## Parameters

Input
Name | Type | Description
inputArray | double-precision array | Input array used to compute the rms value.
numberOfElements | integer | Number of elements used to compute the rms value.
Output
Name | Type | Description
rootMeanSquared | double-precision | Root-mean-square 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.