# LinEv1D

AnalysisLibErrType LinEv1D (double inputArray[], int numberOfElements, double multiplier, double additiveConstant, double outputArray[]);

## Purpose

Performs a linear evaluation of a 1D array.

LinEv1D obtains the element of the output array, using the following formula:

yi = (a × xi) + b

LinEv1D can perform the operation in place; that is, the input and output arrays can be the same.

## Parameters

Input
Name | Type | Description
inputArray | double-precision array | The array used as the basis for the linear evaluation.
numberOfElements | integer | Number of elements used in the linear evaluation of the input array.
multiplier | double | Multiplicative constant used in the linear evaluation of the input array. Default Value: 1.0.
additiveConstant | double | Additive constant used in the linear evaluation of the input array. Default Value: 0.0.
Output
Name | Type | Description
outputArray | double-precision array | The linear evaluation 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.