Constructor
new GeneratedDiffEvaluation(adapters)
Construct a new GeneratedDiffEvaluation instance.
Parameters:
Name | Type | Description |
---|---|---|
adapters |
Array.<DiffAdapter> | The adapters of the algorithms to use for the evaluation. |
Classes
Methods
(static) all() → {GeneratedDiffEvaluation}
Create a new GeneratedDiffEvaluation instance using all algorithms.
Returns:
average(constChanges, constSize, local)
Evaluate diff algorithms using random process trees of increasing size.
The results are relative to a proposed edit script and represent the
average of multiple runs with trees of similar size.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
constChanges |
Boolean | If the number of changes should remain constant. | |
constSize |
Boolean | If the size of the trees should remain constant. | |
local |
Boolean | false | If a constant number of changes should be applied locally, i.e. to a small region of the process tree. If set to false, changes are growing and randomly distributed within the tree. |
evalAll()
publishLatex(resultsPerAdapter, xFunc)
Print the Latex plots for a list or results.
Parameters:
Name | Type | Description |
---|---|---|
resultsPerAdapter |
Map.<String, Array.<AverageDiffResult>> | The results grouped by algorithm. |
xFunc |
function | A function that maps each result to the x-value in the latex plot. |
single(constChanges, constSize, local)
Evaluate diff algorithms using random process trees.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
constChanges |
Boolean | If the number of changes should remain constant. | |
constSize |
Boolean | If the size of the trees should remain constant. | |
local |
Boolean | false | If a constant number of changes should be applied locally, i.e. to a small region of the process tree. If set to false, changes are growing and randomly distributed within the tree. |