ExperimentalDesign

class ExperimentalDesign @JvmOverloads constructor(factors: Set<Factor>, name: String? = null) : Identity, ExperimentalDesignIfc(source)

An experimental design represents a set of factors with design points. This permits the execution of a model using the factors and their levels

Parameters

factors

the factors for the experiment

name

an optional name for the experiment

Constructors

Link copied to clipboard
constructor(factors: Set<Factor>, name: String? = null)

Types

Link copied to clipboard
inner class DesignPointIterator(val numReps: Int? = null) : DesignPointIteratorIfc

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

Properties

Link copied to clipboard
open override val factorNames: List<String>

The names of the factors within a list.

Link copied to clipboard
open override val factors: Map<String, Factor>

The factors associated with the design held by name.

Functions

Link copied to clipboard
fun addDesignPoint(values: DoubleArray, numReps: Int = 1, enforceRange: Boolean = true): DesignPoint
fun addDesignPoint(settings: Map<Factor, Double>, numReps: Int = 1, enforceRange: Boolean = true): DesignPoint

Creates a design point and adds it to the design.

Link copied to clipboard

Clears all the design points from the design.

Link copied to clipboard
open override fun designIterator(replications: Int?): DesignPointIteratorIfc

Returns an iterator that produces the design points in order from 1 to the number of design points.

Link copied to clipboard
open operator override fun iterator(): Iterator<DesignPoint>