GrubbsIterativeResult
data class GrubbsIterativeResult(val outlierIndices: List<Int>, val cleanedData: DoubleArray, val iterations: List<TestResult>)(source)
The result of an iterative Grubbs' test for multiple outlier detection.
Contains the indices of all detected outliers (in the original array), the remaining data after outlier removal, and the TestResult from each iteration. The iteration list always has at least one entry — the final entry is the test that was not significant (or that had too few observations to continue).
Example:
val result = grubbsTestIterative(doubleArrayOf(10.0, 11.0, 12.0, 80.0, 90.0), alpha = 0.05)
result.outlierIndices // indices of detected outliers in the original array
result.cleanedData // data with outliers removed
result.iterations // TestResult for each roundContent copied to clipboard
Properties
Link copied to clipboard
the remaining observations after all detected outliers have been removed.
Link copied to clipboard
the TestResult produced by each round of the iterative procedure.
Link copied to clipboard
the zero-based indices of the detected outliers in the original input array, in the order they were removed.