inDesignWord

fun inDesignWord(dp: DesignPoint, word: Set<Int>, sign: Double = 1.0): Boolean

Checks if the coded values of the design point are in the word specified by the factor numbers stored in the relation set. Suppose the word of the designing relation is 2345 Then word = setOf(2,3,4,5). The values in the word set must be valid factor indices. If a design has 5 factors, then the indices must be in 1..5. With 1 referencing the first factor, 2 the 2nd, etc.

Parameters

dp

the design point to check

word

the set of factor indices for the word of a defining relation. The word must have at least 3 elements and its size must be less than or equal to the number of factors.

sign

the sign of the generator 1.0 = I, -1.0 = -I. The default is 1.0.