had_goethals_base: had_goethals_base

Description Usage Arguments Details Value Source References Examples

View source: R/had_goethals_base.R

Description

had_goethals_base performs the construction of Hadamard Matrix from Goethals-Seidel method. by using the Base sequences.

Usage

1

Arguments

x

integer (order of the matrix)

Details

This function construct the Hadamard matrix of given order using base sequences. If base sequences of length n+1,n+1,n,n are available, base sequences are converted into T-sequences of length 2n+1,2n+1,2n+1,2n+1 can be constructed. From T-sequence of length 2n+1, Hadamard matrix of order 4(2n+1) can be constructed. For a given order the base sequences is not available it returns NULL.

The Base sequences are stored in internal dataset. The available Base sequences of length is 1,2,3,4,.....,35

Value

Hadamard matrix of order x

Source

The Base sequences were obtained from Christos Koukouvinos

References

Goethals, J. M. and Seidel, J. J. (1967). Orthogonal matrices with zero diagnol. Canad. J. Math., 19, 259-264.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
had_goethals_base(12)
#       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12]
# [1,]    1    1    1    1    1   -1    1   -1   -1    -1     1    -1
# [2,]    1    1    1    1   -1    1   -1   -1    1     1    -1    -1
# [3,]    1    1    1   -1    1    1   -1    1   -1    -1    -1     1
# [4,]   -1   -1    1    1    1    1    1   -1   -1     1    -1     1
# [5,]   -1    1   -1    1    1    1   -1   -1    1    -1     1     1
# [6,]    1   -1   -1    1    1    1   -1    1   -1     1     1    -1
# [7,]   -1    1    1   -1    1    1    1    1    1     1     1    -1
# [8,]    1    1   -1    1    1   -1    1    1    1     1    -1     1
# [9,]    1   -1    1    1   -1    1    1    1    1    -1     1     1
#[10,]    1   -1    1   -1    1   -1   -1   -1    1     1     1     1
#[11,]   -1    1    1    1   -1   -1   -1    1   -1     1     1     1
#[12,]    1    1   -1   -1   -1    1    1   -1   -1     1     1     1
had_goethals_base(16)
#NULL

HadamardR documentation built on April 14, 2020, 7:01 p.m.