CentralCompositeDesign

open class CentralCompositeDesign(twoLevelDesignItr: FactorialDesign.FactorialDesignIterator, val numFactorialReps: Int = 1, val numAxialReps: Int = 1, val numCenterReps: Int = 1, val axialSpacing: Double, name: String? = null) : Identity, ExperimentalDesignIfc

A central composite design represent a two-level factorial design that has been augmented with a center point and axial point to enable the modeling of quadratic response surface models.

This base class specifies a circumscribed central composite design. Thus, the extreme values for the high and low settings for the factors will be exceeded. Care must be taken to ensure that the values for the axial points are valid values for the design factors in the original parameter space.

Parameters

twoLevelDesignItr

an iterator to the points in the factorial or fractional factorial design

numFactorialReps

the number of replications at each point in the factorial design. The default is 1.

numCenterReps

the number of replications for the center point in the factorial design. The default is 1.

numAxialReps

the number of replications for the axial points in the factorial design. The default is 1.

axialSpacing

the axial spacing in coded units for the design. The axial spacing must be greater than 0.0. The user is responsible for selecting an appropriate axial spacing value that determines the quality of the design.

Constructors

Link copied to clipboard
constructor(twoLevelFactorialDesign: TwoLevelFactorialDesign, numFactorialReps: Int = 1, numAxialReps: Int = 1, numCenterReps: Int = 1, axialSpacing: Double, name: String? = null)

A central composite design represent a two-level factorial design that has been augmented with a center point and axial point to enable the modeling of quadratic response surface models.

constructor(factors: Set<TwoLevelFactor>, numFactorialReps: Int = 1, numAxialReps: Int = 1, numCenterReps: Int = 1, axialSpacing: Double, name: String? = null)

A central composite design represent a two-level factorial design that has been augmented with a center point and axial point to enable the modeling of quadratic response surface models.

constructor(twoLevelDesignItr: FactorialDesign.FactorialDesignIterator, numFactorialReps: Int = 1, numAxialReps: Int = 1, numCenterReps: Int = 1, axialSpacing: Double, name: String? = null)

Types

Link copied to clipboard
object Companion

Properties

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

The names of the factors within a list.

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

The factors associated with the design held by name.

Link copied to clipboard
override val id: Int
Link copied to clipboard
open override var label: String?
Link copied to clipboard
override val name: String
Link copied to clipboard
Link copied to clipboard
val numAxialReps: Int = 1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val numFactors: Int

The number of factor in the design

Functions

Link copied to clipboard
override fun centerPoint(): DoubleArray

Makes a center point for the factors of the design in the original measurement units

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

Returns all the design points in the experiment

Link copied to clipboard
open fun designPointsAsDataframe(coded: Boolean = false): AnyFrame

Returns the design points as a data frame. The columns of the data frame are the factor names and the rows are the design points.

Link copied to clipboard
open fun designPointsTo2DArray(coded: Boolean = false): Array<DoubleArray>

Returns all the design points based on the cartesian product of the factors and their levels as a 2D array. The rows of the array are the design points. The row array's 0th element represents the first factor in the list of factor names.

Link copied to clipboard
open fun designPointsToList(coded: Boolean = false): List<DoubleArray>

Returns all the design points based on the cartesian product of the factors and their levels. The element arrays of the returned list are the design points. The element array's 0th element represents the first factor in the list of factor names.

Link copied to clipboard
open fun factorName(k: Int): String

Returns the name of the factor. The first factor is at k = 1

Link copied to clipboard
open fun forEach(p0: Consumer<in DesignPoint>)
Link copied to clipboard
open fun isValid(settings: Map<Factor, Double>, enforceRange: Boolean = true): Boolean

Checks if the settings for the factors are valid for this design

Link copied to clipboard
open operator override fun iterator(): Iterator<DesignPoint>
Link copied to clipboard
open fun linearModel(type: LinearModel.Type = LinearModel.Type.FirstOrder): LinearModel

To facilitate the specification of a linear model for the design

Link copied to clipboard
Link copied to clipboard
open fun toCodedValues(rawValues: DoubleArray): DoubleArray

Converts the original values to code values

Link copied to clipboard
open fun toOriginalValues(codedValues: DoubleArray): DoubleArray

Converts the coded values to values on the original measurement scale.

Link copied to clipboard
open override fun toString(): String