qat (version 0.74)

qat_analyse_set_mean_2d: Mean of values of a vector

Description

This function makes a mean of successive values of a given vector.

Usage

qat_analyse_set_mean_2d(measurement_vector, blocksize)

Arguments

measurement_vector
The measurement vector, which should be tested
blocksize
Number of elements, which should be added up

Value

Give back a list, which includes the vector with the results of the blocks.

Details

Starting with the first element the measurement vector will be split up into blocks of the size of the parameter block size. In a second step a mean will be formed with the elements of these blocks. If the last block haven't the size of block size, this block will be ignored.

Examples

Run this code
vec <- array(rnorm(144), c(12,12))
result <- qat_analyse_set_mean_2d(vec, 3)

Run the code above in your browser using DataLab