This function bins pupil data into specified time bins using either mean or median aggregation. It creates evenly spaced bins across the time series and aggregates pupil values within each bin.
Value
A data frame with binned pupil data containing columns:
time_secs: Bin center timestampspupil_binned_{method}_{bins_per_second}hz: Binned pupil values
Details
This function is called by the exposed wrapper bin().
