sampling.effects.randorient

sampling.effects.randorient(k, p, xi, seed=None)

Generates a random orientation of a sampling matrix. This function creates a random sampling matrix for a given number of dimensions (k), number of levels (p), and step length (xi). The resulting matrix is used for screening designs in the context of experimental design.

Parameters

Name Type Description Default
k int Number of dimensions. required
p int Number of levels. required
xi float Step length. required
seed int Seed for the random number generator. Defaults to None. None

Returns

Name Type Description
np.ndarray np.ndarray: A random sampling matrix of shape (k+1, k).

Example

randorient(k=2, p=3, xi=0.5) array([[0. , 0. ], [0.5, 0.5], [1. , 1. ]])