Skip to contents

Door lookback window pooling for a single block

Usage

door_lookback_block(
  block,
  lookback_size = 20L,
  aggregate_mean = FALSE,
  weighting_linear = FALSE,
  segment_ids = integer()
)

Arguments

block

Numeric matrix of connection counts

lookback_size

Window lookback size

aggregate_mean

Logical: TRUE = mean, FALSE = sum

weighting_linear

Logical: TRUE = linear weights, FALSE = equal

segment_ids

Integer vector of segment IDs (0-indexed or 1-indexed)