designMatrix: Orthogonal Design Matrix

designMatrixR Documentation

Orthogonal Design Matrix

Description

Produces a matrix whose rows correspond to an orthogonal binary design matrix.

Usage

designMatrix(n)

Arguments

n

integer containing the number of elements in the set.

Value

An integer matrix of dimension 2^n by 2^n containing 1 and -1.

Note

The output matrix has orthogonal columns and is symmetric, so (up to a constant) is its own inverse. Operations with this matrix can be performed more efficiently using the fast Hadamard transform.

Author(s)

Robin Evans

See Also

combinations, subsetMatrix.

Examples


designMatrix(3)


rje documentation built on Nov. 12, 2022, 9:06 a.m.