fold: Average a square matrix over the diagonal

Description Usage Arguments Value

View source: R/fold.R

Description

For a square matrix x, a 'folded' matrix xbar will have element xbar[i, j] = xbar[j, i] = (x[i, j] + x[j, i])/2

Usage

1
fold(x)

Arguments

x

numeric square matrix

Value

numeric square symmetric matrix (xbar)


mcfreund/mfutils documentation built on Feb. 6, 2022, 4:57 a.m.