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); }
public void AddPoint(HeatMapPoint heatMapPoint) { HeatMapData.Add(heatMapPoint); }