@pond-ts/fit API Reference
    Preparing search index...

    Class Measured<Q>

    One channel's samples, in order.

    Type Parameters

    • Q

    Implements

    Index

    Properties

    channel: SeriesChannel
    unit: string

    The unit values() and toTimeSeries() hold: 'bpm', 'W', 'rpm', 'm/s' or 'm'.

    Accessors

    Methods

    • Each sample's instant, in milliseconds since the epoch (a copy).

      Returns Float64Array

    • Seconds from the activity's start, one per sample (a copy).

      Returns Float64Array

    • As a pond TimeSeries with one value column (in unit), keyed by each sample's instant. A gap is a missing cell. Shares the activity's own storage: nothing is copied.

      Returns TimeSeries<
          readonly [
              { kind: "time"; name: "time" },
              { kind: "number"; name: "value"; required: false },
          ],
      >

    • The values in unit, one per sample, NaN in a gap (a copy).

      Returns Float64Array