A class representing the desirability metrics for responses in a design.
response
A numeric vector specifying the responses for which desirability is calculated.
low
A numeric vector representing the lower bounds of the desirable range for each response.
high
A numeric vector representing the upper bounds of the desirable range for each response.
target
A numeric vector or character string indicating the target values or goals for each response.
scale
A numeric vector specifying the scaling factors used in the desirability calculation.
importance
A numeric vector indicating the importance of each response in the desirability calculation.
new()
Initializes a new desirability.c
object with specified parameters.
desirability.c$new(
response = NULL,
low = NULL,
high = NULL,
target = NULL,
scale = NULL,
importance = NULL
)
response
A numeric or character vector specifying the responses for which desirability is calculated.
low
A numeric vector representing the lower bounds of the desirable range for each response.
high
A numeric vector representing the upper bounds of the desirable range for each response.
target
A numeric vector or character string indicating the target values or goals for each response.
scale
A numeric vector specifying the scaling factors used in the desirability calculation.
importance
A numeric vector indicating the importance of each response in the desirability calculation.
plot()
Plots the desirability functions based on the specified parameters.
desirability.c$plot(scale, main, xlab, ylab, line.width, col, numPoints = 500)
scale
A numeric vector specifying the scaling factors used in the plot.
main
A character string specifying the main title of the plot.
xlab
A character string specifying the label for the x-axis.
ylab
A character string specifying the label for the y-axis.
line.width
A numeric value specifying the width of the plot lines.
col
A vector of colors for the plot lines.
numPoints
An integer specifying the number of points to plot (default is 500).
clone()
The objects of this class are cloneable with this method.
desirability.c$clone(deep = FALSE)
deep
Whether to make a deep clone.
desirability
, overall
, optimum