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

    Function deriveAutoTimeWindowSec

    • Returns the automatic X window for a scan rate.

      Parameters

      • scanRateHz: number

        Scans per second per channel.

      Returns number

      TARGET_SAMPLES_PER_WINDOW divided by the rate, in seconds, at least 0.05. Returns 1 when the rate is not a positive finite number.

      deriveAutoTimeWindowSec(1000);  // 1
      deriveAutoTimeWindowSec(50000); // 0.05 (0.02 raised to the minimum)