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)


rje42/rje documentation built on April 3, 2024, 11:08 p.m.