Constants.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.data.experiment.merge;
00002 
00003 final class Constants {
00004     static final float MIN_DISTANCE_METRIC = (float) 0.15;
00005     
00006     // init value of score. 
00007     // score can be incremented if the confidence of similarity is high,
00008     // score is decreased if the confidence is lower
00009     static final int SCORE_INIT = 100;
00010     
00011     // ------------------------------------------------------------------------
00012     // weight of different parameters: metric, location, name, children, ..
00013     // the higher the weight, the more important in similarity comparison
00014     // ------------------------------------------------------------------------
00015     // maximum score of metric similarity
00016     static final int WEIGHT_METRIC = 100;
00017     
00018     // score if the two scopes are the same
00019     static final int WEIGHT_NAME = 30;
00020     
00021     // score for the case with the same children
00022     static final int WEIGHT_CHILDREN = 80;
00023     
00024     // same types (loop vs. loop, line vs. line, ...)
00025     static final int WEIGHT_TYPE = 20;
00026     
00027     // weight (the importance) of the distance of the location
00028     // for some application, the distance is not important (due to inlining)
00029     static final float WEIGHT_LOCATION_COEF = (float) 0.2;
00030     static final int WEIGHT_LOCATION = 20;
00031     
00032     // ------------------------------------------------------------------------
00033     // pruning the search of descendants to avoid long useless search
00034     // ------------------------------------------------------------------------
00035     
00036     // Maximum length of breadth first search
00037     static final int MAX_LEN_BFS = 4;
00038     
00039     // maximum length of depth first search
00040     static final int MAX_LEN_DFS = 4;
00041     
00042     // ------------------------------------------------------------------------
00043     // minimum score for confidently the same or similar node
00044     // ------------------------------------------------------------------------
00045     
00046     static final int SCORE_SAME = 260;
00047     
00048     static final int SCORE_SIMILAR = 200;
00049 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1