# ACDCEstimator

Advanced Analysis Library Only

AnalysisLibErrType ACDCEstimator (double inputArray[], int numberOfElements, double *acEstimate, double *dcEstimate);

## Purpose

Calculates an estimation of the AC and DC contents of the input signal. inputArray is the input signal, usually in volts.

acEstimate is the estimate of the input signal AC content in volts, root-mean-square, if the input signal is in volts.

dcEstimate is the estimate of the input signal DC content in volts, if the input signal is in volts.

## Parameters

Input
Name | Type | Description
inputArray | double-precision array | The time-domain signal, usually in volts. This array must contain at least three cycles of the signal for a valid estimate.
numberOfElements | integer | Number of elements in the input array.
Output
Name | Type | Description
acEstimate | double-precision | The estimate of the AC level of the input signal in volts, root-mean-square, if the input signal is volts.
dcEstimate | double-precision | The estimate of the DC level of the input signal in the same units as the input signal.

## 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.