org.sonar.api.measures
Class WeightedMeanAggregationFormula

java.lang.Object
  extended by org.sonar.api.measures.WeightedMeanAggregationFormula
All Implemented Interfaces:
Formula

public class WeightedMeanAggregationFormula
extends Object
implements Formula

Since:
2.0

Constructor Summary
WeightedMeanAggregationFormula(Metric weightingMetric, boolean zeroIfNoValues)
           
 
Method Summary
 Measure calculate(FormulaData data, FormulaContext context)
           
 List<Metric> dependsUponMetrics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedMeanAggregationFormula

public WeightedMeanAggregationFormula(Metric weightingMetric,
                                      boolean zeroIfNoValues)
Method Detail

dependsUponMetrics

public List<Metric> dependsUponMetrics()
Specified by:
dependsUponMetrics in interface Formula

calculate

public Measure calculate(FormulaData data,
                         FormulaContext context)
Specified by:
calculate in interface Formula


Copyright © 2009-2010 SonarSource. All Rights Reserved.