Condenses columns of a matrix by averaging or summing
them. The condensing can be done partially: a multiple of the repetitions can
be averaged or summed to keep some repetitions.
Usage
condense(m, n, fun = "mean")
Arguments
m
matrix of repeated signal, each column being a repetition
n
the number of repetitions that will be averaged/summed
fun
the function to apply to each repetition: "mean" or "sum".