TwoLevelFractionalIterator

inner class TwoLevelFractionalIterator(relation: Set<Set<Int>>, val numReps: Int? = null, val sign: Double = 1.0) : FactorialDesign.FactorialDesignIterator

This iterator should present each design point in the associated fractional design until all points in the fractional design have been presented.

Checks if the coded values of the design point are in the defining relation specified by the factor numbers stored in the relation set. Suppose the designing relation is I = 124 = 135 = 2345 Then relation = setOf(setOf(1,2,4), setOf(1,3,5), setOf(2,3,4,5)).

The values in the words must be valid factor indices. That is 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

relation

the set of words for the defining relation.

numReps

the number of replications for the design points. Must be greater or equal to 1. If null, then the current value for the number of replications of each design point is used. Null is the default.

sign

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

Constructors

Link copied to clipboard
constructor(relation: Set<Set<Int>>, numReps: Int? = null, sign: Double = 1.0)

Properties

Link copied to clipboard
open override var count: Int

The number of design points presented

Link copied to clipboard
open override val design: FactorialDesign
Link copied to clipboard
open val factors: Set<Factor>
Link copied to clipboard

For a 2^(k-p) factorial design, this is p. p=1 means half-fraction, p=2 means quarter fraction, etc.

Link copied to clipboard
open override var last: DesignPoint?

The last presented design point

Link copied to clipboard
open val numFactors: Int
Link copied to clipboard

The number of points to iterate through

Link copied to clipboard
val numReps: Int? = null
Link copied to clipboard
val sign: Double = 1.0

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun hasNext(): Boolean
Link copied to clipboard

A new iterator starting at the first point

Link copied to clipboard
open operator override fun next(): DesignPoint