Learn R Programming

AnalyzeFMRI (version 1.1-25)

centering: centering

Description

This function center the data in the two dimensions, the first dimension being indicated by col.first argument

Usage

centering(X,col.first=TRUE)

Value

Xcentred

the double centered matrix

Arguments

X

a matrix of size tm x vm which contains the functionnal images

col.first

Logical. Center the columns or the rows first

See Also

reduction

Examples

Run this code
X <- matrix(rnorm(5 * 4), nrow = 5, ncol = 4)
Xcentred <- centering(X, col.first = TRUE)$Xcentred

Run the code above in your browser using DataLab