Class: AverageDiffResult

AverageDiffResult(caseName, algorithm, avgRuntime, maxRuntime, stdDevRuntime, avgCost, maxCost, stdDevCost, avgEditOperations, maxEditOperations, stdDevEditOperations)

The average result of multiple diff test results for the same test configuration.

Constructor

new AverageDiffResult(caseName, algorithm, avgRuntime, maxRuntime, stdDevRuntime, avgCost, maxCost, stdDevCost, avgEditOperations, maxEditOperations, stdDevEditOperations)

Construct a new AverageDiffResult instance.
Parameters:
Name Type Description
caseName String The name of the diff test case configuration that was run multiple times.
algorithm String The matching algorithm that produced the match results.
avgRuntime Number The average runtime across the results.
maxRuntime Number The maximum runtime observed across all results.
stdDevRuntime Number The standard deviation of the runtime.
avgCost Number The average edits script cost across the results.
maxCost Number The maximum edit script cost observed across all results.
stdDevCost Number The standard deviation of the edit script cost.
avgEditOperations Number The average number of edit operations across the results.
maxEditOperations Number The maximum number of edit operations observed across all results.
stdDevEditOperations Number The standard deviation of the number of edit operations.
Source:
See:

Classes

AverageDiffResult

Members

(constant) algorithm :String

The diff algorithm that produced the diff results.
Type:
  • String
Source:

(constant) avgCost :Number

The average edits script cost across the results.
Type:
  • Number
Source:

(constant) avgEditOperations :Number

The average number of edit operations across the results.
Type:
  • Number
Source:

(constant) avgRuntime :Number

The average runtime across the results.
Type:
  • Number
Source:

(constant) caseName :String

The name of the diff test case configuration that was run multiple times.
Type:
  • String
Source:

(constant) maxCost :Number

The maximum edit script cost observed across all results.
Type:
  • Number
Source:

(constant) maxEditOperations :Number

The maximum number of edit operations observed across all results.
Type:
  • Number
Source:

(constant) maxRuntime :Number

The maximum runtime observed across all results.
Type:
  • Number
Source:

(constant) stdDevCost :Number

The standard deviation of the edit script cost.
Type:
  • Number
Source:

(constant) stdDevEditOperations :Number

The standard deviation of the number of edit operations.
Type:
  • Number
Source:

(constant) stdDevRuntime :Number

The standard deviation of the runtime.
Type:
  • Number
Source:

Methods

(static) header() → {Array.<String>}

Source:
Returns:
The header row for a list of average diff results results to use in tables.
Type
Array.<String>

(static) of(diffResults) → (nullable) {AverageDiffResult}

Construct a AverageDiffResult instance from a list of diff test results pertaining to the same test case configuration. Results that indicate a timeout or runtime error are ignored during the metric calculation.
Parameters:
Name Type Description
diffResults Array.<DiffTestResult> The list of diff test results.
Source:
Returns:
Derived metrics for the results. Null if no valid results were found.
Type
AverageDiffResult

values() → {Array.<String>}

Source:
Returns:
The row of values of this result for use in tables.
Type
Array.<String>