hotstepper.Sequency.walsh_matrix

Sequency.walsh_matrix(scale)

Generate sequency order Walsh functions and return in a matrix.

Parameters

scale (int) –

The length of the Walsh functions, must be a power of 2, else will raise an exception.

Note

A scale = 8 means each Walsh function will have 8 data points and therefore be 8 units in length.

Returns

sequencies, scale x scale matrix of Walsh functions

Return type

tuple(array, array(scale x scale))