Examples of WeightedAvgCalculator


Examples of org.emftrace.quarc.core.aggregations.WeightedAvgCalculator

          "weighted min",
          new WeightedMinCalculator(leafElements, builder
              .getCacheManager()));
      calculators.put(
          "weighted avg",
          new WeightedAvgCalculator(leafElements, builder
              .getCacheManager()));
    }
    for (Entry<String, AbstractCalculator> entry : calculators.entrySet()) {
      final AbstractCalculator calculator = entry.getValue();
      String caption = entry.getKey();
View Full Code Here

Examples of org.emftrace.quarc.core.aggregations.WeightedAvgCalculator

      if (!getCacheManager().getSelectedGoals().isEmpty()) {
        calculators.put("weighted max", new WeightedMaxCalculator(
            leafElementsGoalLayer, getCacheManager()));
        calculators.put("weighted min", new WeightedMinCalculator(
            leafElementsGoalLayer, getCacheManager()));
        calculators.put("weighted avg", new WeightedAvgCalculator(
            leafElementsGoalLayer, getCacheManager()));
      }

      if (element instanceof SolutionInstrument) {
        calculators.put("max", new MaxCalculator(
            leafElementsPrincipleLayer, getCacheManager()));
        calculators.put("min", new MinCalculator(
            leafElementsPrincipleLayer, getCacheManager()));
        calculators.put("avg", new AvgCalculator(
            leafElementsPrincipleLayer, getCacheManager()));
        if (!getCacheManager().getSelectedPrinciples().isEmpty()) {
          calculators.put("weighted max", new WeightedMaxCalculator(
              leafElementsPrincipleLayer, getCacheManager()));
          calculators.put("weighted min", new WeightedMinCalculator(
              leafElementsPrincipleLayer, getCacheManager()));
          calculators.put("weighted avg", new WeightedAvgCalculator(
              leafElementsPrincipleLayer, getCacheManager()));
        }
      }

      ratingsString += " Aggregations:";
View Full Code Here

Examples of org.emftrace.quarc.core.aggregations.WeightedAvgCalculator

    List<Element> goalList = new ArrayList<Element>();
    goalList.add(g1);
    goalList.add(g2);
   
   
    assertEquals(64.0f , new WeightedAvgCalculator(goalList, cacheManager).calcAggregation(si1));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.