Factor

constructor(name: String, values: List<Double>)

Parameters

name

the name of the factor

values

a list 2 or more of unique strictly increasing values


constructor(name: String, values: IntProgression)

Parameters

name

the name of the factor

values

a list 2 or more of unique strictly increasing values


constructor(name: String, low: Double, high: Double)

Creates a two level factor with provided low and high values.

Parameters

name

the name of the factor

low

the low value of factor, must be strictly less than the high value

high

the high value of the factor, must be strictly greater than the low value


constructor(name: String, values: DoubleArray = doubleArrayOf(-1.0, 1.0))

Parameters

values

the value for each level as an array. There must be 2 or more values supplied.