}
double averageCumulativeGain = (cumulativeGain / numberOfApproximationSteps);
double gainCurveArea = averageCumulativeGain
* (maxInterval - minInterval);
StrategyGainResult gainResult = new StrategyGainResult();
gainResult.setStrategyName(selectionStrategies[j]);
gainResult.setArea(gainCurveArea);
gainResult.setHighestGain(maxGain);
gainResult.setPointOfHighestGain(pointOfMaxGain);
gainResult.setGainScore(gainCurveArea * (1 - pointOfMaxGain));
strategyGainResults.add(gainResult);
}
OntologyGainResult result = new OntologyGainResult();
result.setStrategyGainResults(strategyGainResults);