screamer.js
    Preparing search index...

    Function RoofingFilter

    • Ehlers bandpass, a highpass then a SuperSmoother.

      Parameters

      • options: RoofingFilterOptions

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

      Returns ScreamerOp

    • Ehlers bandpass, a highpass then a SuperSmoother.

      Parameters

      • OptionalhpPeriod: number | null

        Highpass cutoff as a cycle length in samples; longer cycles (the trend) are removed. Give exactly one of hp_period and hp_cutoff. 48 is a common starting value.

      • OptionallpPeriod: number | null

        Lowpass cutoff as a cycle length in samples; shorter cycles (noise) are removed. Give exactly one of lp_period and lp_cutoff. 10 is a common starting value.

      • OptionalhpCutoff: number | null

        Highpass cutoff as a fraction of the Nyquist frequency, in (0, 1), equal to 2 / hp_period. Give exactly one of hp_period and hp_cutoff.

      • OptionallpCutoff: number | null

        Lowpass cutoff as a fraction of the Nyquist frequency, in (0, 1), equal to 2 / lp_period. Give exactly one of lp_period and lp_cutoff.

      • OptionalstartPolicy: string

        Initial filter state. "steady" sets the state, at the first non-NaN input x0, to the steady state for a constant input x0, so the output starts at 0. "zero" starts from an all-zero state, as scipy.signal.lfilter does.

      Returns ScreamerOp