ixfx
    Preparing search index...

    Function computeIsOutlier

    • Returns a function which itself returns true if a value is an outlier.

      This can be used for example to get a copy of an array without outliers:

      const p = computeIsOutlier(someData);
      const someDataWithoutOutliers = someData.filter(value => !p(value));

      Outliers are defined as: "a point which falls more than 1.5 times the interquartile range above the third quartile or below the first quartile." Wolfram

      If array length is less than 4, no value will be considered an outlier.

      Parameters

      • data: number[]

        Data to filter

      • multiplier: number = 1.5

        Multiplier of Q3 Q1. Default: 1.5

      Returns (value: number) => boolean