Skip to contents

Represents a single pressure measurement recording: a time series of pressure frames measured across a sensor layout.

Usage

pr_trial(pressure, time, layout, metadata = list(), sampling_hz = NULL)

Arguments

pressure

Numeric matrix of dimensions n_frames x n_sensors. Each row is one time frame, each column is one active sensor.

time

Numeric vector of length n_frames. Timestamps in seconds from recording start.

layout

A pr_layout object defining the sensor arrangement.

metadata

Named list of trial metadata. Expected (optional) fields: subject_id, trial_id, date, condition, system, notes.

sampling_hz

Numeric. Sampling rate in Hz. If NULL, computed from time.

Value

A pr_trial S3 object.

Examples

trial <- pr_example_trial("insole")
print(trial)
#> 
#> ── pr_trial ────────────────────────────────────────────────────────────────────
#> • System: "insole"
#> • Layout: "insole_standard"
#> • Frames: 250
#> • Duration: 5 s
#> • Sampling: 50 Hz
#> • Sensors: 99
#> • Subject: "EX01"
#> • Date: "2026-05-04"
#> • Condition: "walking"