Calculate the mean of adjacent blocks in a vector.

mean_vec_blocks(x, block_size)

Arguments

x

input vector.

block_size

number of adjacent elements to average over.

Value

vector data averaged in blocks.