TwoLevelFactor

class TwoLevelFactor(name: String, low: Double = -1.0, high: Double = 1.0) : Factor

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

Constructors

Link copied to clipboard
constructor(name: String, low: Double = -1.0, high: Double = 1.0)

Properties

Link copied to clipboard

The levels as coded values.

Link copied to clipboard

The half-range of the levels.

Link copied to clipboard
override val id: Int
Link copied to clipboard
Link copied to clipboard
open override var label: String?
Link copied to clipboard

The levels as a list

Link copied to clipboard

The mid-point of the levels.

Link copied to clipboard
override val name: String

Functions

Link copied to clipboard

The coded levels as an array.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun isInRange(value: Double): Boolean

True if the value is within the range limits of the factor

Link copied to clipboard

The levels as an array.

Link copied to clipboard
fun toCodedValue(rawValue: Double): Double

Converts the original raw value to the coded measurement scale. This conversion does not check if the raw value is within the range limits of the factor.

Link copied to clipboard
fun toOriginalValue(codedValue: Double): Double

Converts the coded value to the original measurement scale

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