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

    Class LiveChannelFilter

    Causal filters of one live channel.

    Index

    Constructors

    Properties

    calibration: CalibrationSpec

    The channel's calibration, applied between the raw-volt stages and the high-/low-pass filters.

    emitted: DataPoint[] = []
    head: number = 0
    lastSequence: bigint | null = null
    lastTimestamp: number | null = null
    linear: LinearFilterChain | null = null
    outputs: number[] = []
    plan: FilterPlan | null = null

    Plan for the current sample rate; null before the first batch.

    raw: RawFilterChain | null = null

    The channel's filter settings.

    showFiltered: boolean = true

    Whether value carries the filtered or the calibrated value.

    Methods

    • Emits every held point, finishing the despike window at the last input.

      Returns void

    • Filters the points of one ingested batch.

      Parameters

      • result: IngestResult

        From ingestScan; its points are changed in place.

      • sequence: bigint

        The batch's sequence number.

      • intervalNs: bigint

        The batch's sample interval.

      Returns DataPoint[]

      The points ready to append, oldest first: held points of earlier batches, then this batch's except the last few the despike window holds.

    • Drops held points and every filter state, for a buffer reset.

      Returns void

    • Sets which value value carries, for the points still to come and, in place, for buffer (the channel's live buffer; captures share its points).

      Parameters

      Returns void

    • Hands the pipeline's outputs to the waiting points, in order.

      Returns void