net.sourceforge.pmd.stat

Class StatisticalRule

public abstract class StatisticalRule extends AbstractRule

Author: David Dixon-Peugh Aug 8, 2002 StatisticalRule.java

Field Summary
static doubleDELTA
Method Summary
voidaddDataPoint(DataPoint point)
voidapply(List acus, RuleContext ctx)
protected SortedSet<DataPoint>applyMinimumValue(SortedSet<DataPoint> pointSet, double minValue)
protected SortedSet<DataPoint>applyTopScore(SortedSet<DataPoint> points, int topScore)
protected doublegetMean()
protected doublegetStdDev()
protected voidmakeViolations(RuleContext ctx, Set<DataPoint> p)
protected Map<String,PropertyDescriptor>propertiesByName()

Field Detail

DELTA

public static final double DELTA

Method Detail

addDataPoint

public void addDataPoint(DataPoint point)

apply

public void apply(List acus, RuleContext ctx)

applyMinimumValue

protected SortedSet<DataPoint> applyMinimumValue(SortedSet<DataPoint> pointSet, double minValue)

applyTopScore

protected SortedSet<DataPoint> applyTopScore(SortedSet<DataPoint> points, int topScore)

getMean

protected double getMean()

getStdDev

protected double getStdDev()

makeViolations

protected void makeViolations(RuleContext ctx, Set<DataPoint> p)

propertiesByName

protected Map<String,PropertyDescriptor> propertiesByName()