eelbrain.pipeline.UTSPredictor

class eelbrain.pipeline.UTSPredictor(resample=None, sampling=None)[source]

Uniform time series predictor, stored as NDVar files

Parameters:
  • resample (Literal['bin', 'resample']) –

    How to resample the predictor when an analysis is done at a lower sampling rate than the stored NDVar:

    • bin: averaging the values in time bins

    • resample: use appropriate filter followed by decimation

    For predictors with non-continuous information, such as impulses, binning is more appropriate.

  • sampling (Literal['continuous', 'discrete']) – Whether the predictor is continuous or discrete. Used to decide whether to filter this predictor with filter_x='continuous' (default 'continuous').

Notes

UTS predictors are stored as NDVar objects with time dimension matching the data (see FilePredictorBase for the file location). The file name after {key} can be extended freely ({stimulus}~{key}-{variant}) to manage multiple predictor variants with the same UTSPredictor instance.