R/meanmat.ts.generic.R

Defines functions meanmat.ts.generic

meanmat.ts.generic <- function(datamat, N, projmat, voi) {
    if (voi == "columns")
        datamat <- transposedatamatrix(datamat, N)
    datamat <- projmat %*% datamat
    test_stats <- meanmatts_statistics(datamat, N)
    ans <- test_stats[1] / sqrt(2 * test_stats[2] / N / (N - 1))
    ans
}
AnestisTouloumis/HDTD documentation built on Aug. 2, 2021, 2:15 p.m.