screamer.js
    Preparing search index...

    Function Hampel

    • Robust Hampel despiker, replace samples far from the window median (in MAD units).

      Parameters

      • options: HampelOptions

        The settings by name, each one optional where the positional form's is.

      Returns ScreamerOp

    • Robust Hampel despiker, replace samples far from the window median (in MAD units).

      Parameters

      • OptionalwindowSize: number

        Number of most recent samples used for the median and the MAD.

      • OptionalnSigma: number

        Detection threshold in robust standard deviations (1.4826 * MAD). Larger values flag fewer samples; 3.0 is typical. inf flags no sample, so the output is the input.

      • Optionaloutput: string

        What to return: "cleaned" gives the signal with outliers replaced by the median, "flag" gives 1.0 at outliers and 0.0 elsewhere, and "nan" gives the input with outliers replaced by NaN.

      • OptionalstartPolicy: string

        Output before the window is full: "strict" gives NaN, "expanding" computes from the samples seen so far, and "zero" treats the window as pre-filled with zeros.

      Returns ScreamerOp