Learn R Programming

neuroim (version 0.0.6)

scaleSeries: Generic functions to scale (center and/or normalize by standard deviation) each series of a 4D image That is, if the 4th dimension is 'time' each series is a 1D time series.

Description

Generic functions to scale (center and/or normalize by standard deviation) each series of a 4D image That is, if the 4th dimension is 'time' each series is a 1D time series.

Usage

scaleSeries(x, center, scale)
"scaleSeries"(x, center, scale)
"scaleSeries"(x, center, scale)
"scaleSeries"(x, center, scale)
"scaleSeries"(x, center, scale)

Arguments

x
a four dimensional image
center
a logical value indicating whether series should be centered
scale
a logical value indicating whether series should be divided by standard deviation

Examples

Run this code
bvec <- BrainVector(array(rnorm(24*24*24*24), c(24,24,24,24)), BrainSpace(c(24,24,24,24), c(1,1,1)))
res <- scaleSeries(bvec, TRUE, TRUE)

Run the code above in your browser using DataLab