public class ProfileAnalysis extends Object
Provides options to analyze the two tables types:
ProfileGraph2D 1D tablesMultiLevelProfiler 2D tables
The ProfileAnalysis class is purely static and unable
to be instantiated.
WARNING: the analysis operations assume the preconditions are satisfied with only minor checks. Therefore it essential that the appropriate file types are selected.
| Modifier and Type | Field and Description |
|---|---|
static double |
STATISTICALLY_SIGNIFICANT
Percent level in which difference in values are considered statistically
significant and thus take appropriate (warning) action.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
analyzeTables1D()
Computes the difference between the last two records
in each 1D table and analyzes whether the change was significant.
|
static void |
compareTables2D()
Brings a dialog box to ask the user to select two table based
CSV files and compares the differences of the tables.
|
static void |
compareTables2D(File fileA,
File fileB)
Computes the difference of each cell between the first file selected
and the second file (first - second).
|
static double |
percentChange(double valInit,
double valFinal)
Calculates the percent change from initial to final.
|
static String |
performanceChange(double valInit,
double valFinal)
Determines the significance of the change from the initial value to
the final value.
|
public static final double STATISTICALLY_SIGNIFICANT
public static void compareTables2D()
Computes the difference of each cell between the first file selected and the second file (first - second).
Precondition: both files selected are MultiLevelProfiler
table files of the same graph type.
public static void compareTables2D(File fileA, File fileB)
Precondition: both files selected are MultiLevelProfiler
table files of the same graph type.
fileA - .CSV MultiLevelProfiler formatted file,
considered initial file (compares fileA - fileB)fileB - .CSV MultiLevelProfiler formatted file,
considered initial file (compares fileA - fileB)public static List<String> analyzeTables1D()
Conditions to Analyze:
public static double percentChange(double valInit,
double valFinal)
valInit - initial valuevalFinal - final valuepublic static String performanceChange(double valInit, double valFinal)
valInit - initial valuevalFinal - final valueCopyright © 2015. All rights reserved.