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 SortedSetapplyMinimumValue(SortedSet pointSet, double minValue)
protected SortedSetapplyTopScore(SortedSet points, int topScore)
protected doublegetMean()
protected doublegetStdDev()
protected voidmakeViolations(RuleContext ctx, Set p)

Field Detail

DELTA

public static double DELTA

Method Detail

addDataPoint

public void addDataPoint(DataPoint point)

apply

public void apply(List acus, RuleContext ctx)

applyMinimumValue

protected SortedSet applyMinimumValue(SortedSet pointSet, double minValue)

applyTopScore

protected SortedSet applyTopScore(SortedSet points, int topScore)

getMean

protected double getMean()

getStdDev

protected double getStdDev()

makeViolations

protected void makeViolations(RuleContext ctx, Set p)