Avena Webapp API - v0.0.1
    Preparing search index...

    Class RawFilterChain

    Despike and template stages, on raw volts. Takes one input at a time and appends outputs, in input order, to the array it is given: nothing for the first delaySamples inputs of a segment, then one per input; flush appends the rest.

    Index

    Constructors

    Properties

    index: number = 0

    Sample number since the start of the run, for the template phase.

    pending: number[] = []

    Scratch array for the despiker's outputs.

    ratio11: number

    Methods

    • Ends the segment before missing absent samples of the same run: appends the held outputs and restarts the despike window, and advances the sample count so the templates, which are kept, stay in phase.

      Parameters

      • missing: number
      • out: number[]

      Returns void

    • Runs the template stages on one despiked sample and appends it. Both templates are read before the sample updates them. Each learns from the sample minus the other's current template, so neither soaks up the other wave while they are young.

      Parameters

      • x: number
      • out: number[]

      Returns void

    • Appends the outputs still held back by the despike window.

      Parameters

      • out: number[]

      Returns void

    • Takes one raw sample (NaN for a missing one) and appends the outputs it completes.

      Parameters

      • x: number
      • out: number[]

      Returns void

    • Drops everything, including the templates, for a new run.

      Returns void