Package nl.vu.few.anytimereasoning.workbench.measures.utils

Examples of nl.vu.few.anytimereasoning.workbench.measures.utils.StrategyGainResult


        }
        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);
View Full Code Here


      for (int j = 0; j < selectionStrategies.length; j++)
      {
        outCSV.writeBytes(selectionStrategies[j] + ", ");
        for (int i = 0; i < results.size(); i++)
        {
          StrategyGainResult sgr = results.get(i)
              .getStrategyGainResults().get(j);
          outCSV.writeBytes(round2Decimals(sgr.getGainScore()) + "");
          if ((i + 1) < results.size())
          {
            outCSV.writeBytes(",");
          } else
          {
View Full Code Here

TOP

Related Classes of nl.vu.few.anytimereasoning.workbench.measures.utils.StrategyGainResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.