compute the DVARS quality control metric

computeDVARS(boldMatrix)

Arguments

boldMatrix

matrix of bold signal

Value

DVARS vector.

Author

Tustison NJ, Avants BB

Examples


mat <- matrix(c(0, 1, 2, 0, 0, 1, 2, 2, 2), ncol = 3)
dv <- computeDVARS(mat)