RemoveOutlierByIndex

Advanced Analysis Library Only

AnalysisLibErrType RemoveOutlierByIndex (double arrayX[], double arrayY[], double weight[], int *numberOfElements, int indices[], int numberOfIndices);

Purpose

Removes the outliers specified by indices.

Parameters

Input
Name Type Description
indices integer array The indices of the outliers.
numberOfIndices integer The length of indices.
Output
Name Type Description
arrayX double-precision array On input, arrayX is the array of x values. On output, arrayX is the array of x values with the outliers removed.
arrayY double-precision array On input, arrayY is the array of y values. On output, arrayY is the array of y values with the outliers removed.
weight double-precision array On input, weight is the array of weights. On output, weight is the array of weights with the outliers removed. If weight is NULL, the function does not change weight.
numberOfElements integer On input, numberOfElements specifies the number of observations in arrayX, arrayY, and weight. On output, numberOfElements specifies the number of remaining observations in arrayX, arrayY, and weight after the outlier observations are removed.

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.