示例#1
0
        public float GetGrayColorRatio(int indexInitialDesired, int indexFinalDesired, int axisDivisionFactr, string requirementName)
        {
            float        grayColorRatio;
            HeatMapPoint correspondingHeatMapPoint = HeatMapData.Find(
                delegate(HeatMapPoint heatMapPoint){
                return((heatMapPoint.indexX == indexInitialDesired) && (heatMapPoint.indexY == indexFinalDesired));
            });

            grayColorRatio  = correspondingHeatMapPoint.objectiveFunctionValues[requirementName];
            grayColorRatio -= minimumValueOfObjectiveFunctions[requirementName];
            if ((maximumValueOfObjectiveFunctions[requirementName] - minimumValueOfObjectiveFunctions[requirementName]) != 0)
            {
                grayColorRatio /= (maximumValueOfObjectiveFunctions[requirementName] - minimumValueOfObjectiveFunctions[requirementName]);
            }
            else
            {
                grayColorRatio = 0;
            }
            return(grayColorRatio);
        }
示例#2
0
 public void AddPoint(HeatMapPoint heatMapPoint)
 {
     HeatMapData.Add(heatMapPoint);
 }