interleaveMatrixWithItself: Simple interleaveMatrixWithItself function.

View source: R/interleaveMatrixWithItself.R

interleaveMatrixWithItselfR Documentation

Simple interleaveMatrixWithItself function.

Description

Replicate columns of input matrix n times as neighbors of columns in original matrix.

Usage

interleaveMatrixWithItself(x, n = 1)

Arguments

x

input matrix

n

number of interleaves

Value

matrix is output

Author(s)

Avants BB

Examples


mat <- replicate(100, rnorm(20))
wmat <- interleaveMatrixWithItself(mat, 5)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.