| designMatrix | R Documentation | 
Produces a matrix whose rows correspond to an orthogonal binary design matrix.
designMatrix(n)
| n | integer containing the number of elements in the set. | 
An integer matrix of dimension 2^n by 2^n containing 1 and -1.
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.
Robin Evans
combinations, subsetMatrix.
designMatrix(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.