The `sampling_distance` function creates a plot that displays the mean of the distance between the configurations that were executed in each iteration.

For categorical parameters the distance is calculated as the hamming distance, for numerical parameters a equality interval is defined by a threshold specified by argument t and hamming distance is calculated using this interval.

sampling_distance(irace_results, type = "boxplot", t = 0.05, file_name = NULL)

Arguments

irace_results

The data generated when loading the Rdata file created by irace

type

String, (default "boxplot") Type of plot to be produces, either "line", "boxplot" or "both". The "boxplot" setting shows a boxplot of the mean distance of all configurations, "line" shows the mean distance of the solution population in each iteration, "both" shows both plots.

t

Numeric, (default 0.05) percentage factor that will determine a distance to define equal numerical parameter values. If the numerical parameter values to be compared are v1 and v2 they are considered equal if `|v1-v2| <= |ub-lb|*t`.

file_name

String, File name to save plot (example: "~/patch/example/file_name.png")

Value

line or box plot

Examples

# sampling_distance(iraceResults) # sampling_distance(iraceResults, type = "boxplot", t=0.07)