designMatrix {rje} | R 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
Examples
designMatrix(3)
[Package rje version 1.12.1 Index]