block_mean {tagtools}R Documentation

Compute mean of sample blocks

Description

This function is used to compute the means of successive blocks of samples.

Usage

block_mean(X, n, nov)

Arguments

X

A vector or a matrix containing samples of a signal in each column.

n

The number of samples from X to use in each analysis block.

nov

(optional) The number of samples that the next block overlaps the previous block. The default value is 0.

Value

A list with 2 elements:

Examples

samplematrix <- matrix(c(1, 3, 5, 7, 9, 11, 13, 15, 17), byrow = TRUE, ncol = 3)
list <- block_mean(samplematrix, n = 3, nov = 1)

[Package tagtools version 0.1.0 Index]