qat (version 0.74)

qat_analyse_set_addup_1d: Addup values of a vector

Description

This function adds up sucessive values of a given vector

Usage

qat_analyse_set_addup_1d(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 splitted up into blocks of the size of the parameter block size. In a second step the elements of these blocks will be summed up. If the last block haven't the size of block size, this block will be ignored.

See Also

qat_analyse_set_mean_1d, qat_analyse_set_nans_1d

Examples

Run this code
vec <- c(1,2,3,4,5,4,3,2,1)
result <- qat_analyse_set_addup_1d(vec, 3)

Run the code above in your browser using DataCamp Workspace