public static bool IsOutlier([NotNull] this IOutlierDetector outlierDetector, double x) { return(outlierDetector.IsLowerOutlier(x) || outlierDetector.IsUpperOutlier(x)); }
public static IEnumerable <double> WithoutLowerOutliers([NotNull] this IOutlierDetector outlierDetector, [NotNull] IEnumerable <double> values) { return(values.Where(x => !outlierDetector.IsLowerOutlier(x))); }