Admin Production ni-theme
Current Publication

RemoveOutlierByIndex

LabWindows/CVI

RemoveOutlierByIndex

Advanced Analysis Library Only

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

Purpose

Removes the outliers specified by indices.

Parameters

Input
Name Type Description
indices ssize_t [] The indices of the outliers.
numberOfIndices ssize_t The length of indices.
Output
Name Type Description
arrayX double [] On input, arrayX is the array of x values. On output, arrayX is the array of x values with the outliers removed.
arrayY double [] On input, arrayY is the array of y values. On output, arrayY is the array of y values with the outliers removed.
weight double [] 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 ssize_t 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.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later