public class StatisticalRuleTest extends Object
Modifier and Type | Field and Description |
---|---|
static double |
DELTA |
static double |
MAX_MINIMUM |
static double |
MAX_SIGMA |
static double |
MEAN |
static int |
MIN_TOPSCORE |
static double |
NO_MINIMUM |
static double |
NO_SIGMA |
static int |
NO_TOPSCORE |
static int |
NUM_TESTS |
static double |
SIGMA |
Constructor and Description |
---|
StatisticalRuleTest() |
Modifier and Type | Method and Description |
---|---|
int |
expectedMinimum(double minimum)
This returns the expected number of reports.
|
int |
expectedSigma(double sigma)
This returns the expected number of results when
the Sigma rating is the smallest.
|
int |
expectedTopScore(int target)
This will return the expected number of results
with the given Top Score.
|
Report |
makeReport(Rule IUT) |
double |
randomMinimum()
This generates a random minimum value for testing.
|
double |
randomMinimum(int minimum)
This generates a random minimum value for which fewer
results would be returned.
|
double |
randomSigma()
This returns a Random value for Sigma which will
return some values.
|
double |
randomSigma(int minimum)
This returns a Random value for Sigma which value
is greater than the parameter.
|
int |
randomTopScore()
This returns a random value for Top Score.
|
int |
randomTopScore(double target)
This will return a random value for the Top Score
which will return more than the minimum provided.
|
void |
setUp() |
static junit.framework.Test |
suite() |
void |
testExpectedMinimum() |
void |
testM() |
void |
testM1() |
void |
testM2() |
void |
testM3() |
void |
testM4() |
void |
testM5() |
void |
testMetrics()
This test verifies that the Stat rule creates a Metric,
with the proper values.
|
void |
testMS() |
void |
testMS1() |
void |
testMS2() |
void |
testMS3() |
void |
testMS4() |
void |
testMS5() |
void |
testMT() |
void |
testMT1() |
void |
testMT2() |
void |
testMT3() |
void |
testMT4() |
void |
testMT5() |
void |
testS() |
void |
testS1() |
void |
testS2() |
void |
testS3() |
void |
testS4() |
void |
testS5() |
void |
testSingleDatapoint() |
void |
testSM() |
void |
testSM1() |
void |
testSM2() |
void |
testSM3() |
void |
testSM4() |
void |
testSM5() |
void |
testSMT() |
void |
testSMT1() |
void |
testSMT2() |
void |
testSMT3() |
void |
testSMT4() |
void |
testSMT5() |
void |
testST() |
void |
testST1() |
void |
testST2() |
void |
testST3() |
void |
testST4() |
void |
testST5() |
void |
testSTM() |
void |
testSTM1() |
void |
testSTM2() |
void |
testSTM3() |
void |
testSTM4() |
void |
testSTM5() |
void |
testT() |
void |
testT1() |
void |
testT2() |
void |
testT3() |
void |
testT4() |
void |
testT5() |
void |
testTM() |
void |
testTM1() |
void |
testTM2() |
void |
testTM3() |
void |
testTM4() |
void |
testTM5() |
void |
testTMS() |
void |
testTMS1() |
void |
testTMS2() |
void |
testTMS3() |
void |
testTMS4() |
void |
testTMS5() |
void |
testTS() |
void |
testTS1() |
void |
testTS2() |
void |
testTS3() |
void |
testTS4() |
void |
testTS5() |
void |
testTSM() |
void |
testTSM1() |
void |
testTSM2() |
void |
testTSM3() |
void |
testTSM4() |
void |
testTSM5() |
void |
verifyResults(double sigma,
double minimum,
int topScore,
int expected,
int delta)
Verifies what happens when you pass these parameters
into the thing.
|
public static final double MAX_MINIMUM
public static final double NO_MINIMUM
public static final double MAX_SIGMA
public static final double NO_SIGMA
public static final int MIN_TOPSCORE
public static final int NO_TOPSCORE
public static final double MEAN
public static final double SIGMA
public static final int NUM_TESTS
public static final double DELTA
public void setUp()
public void testMetrics() throws Throwable
Throwable
public double randomSigma()
public double randomSigma(int minimum)
public int expectedSigma(double sigma)
public double randomMinimum()
public double randomMinimum(int minimum)
public int expectedMinimum(double minimum)
public void testExpectedMinimum()
public int randomTopScore()
public int randomTopScore(double target)
public int expectedTopScore(int target)
public void testSingleDatapoint()
public void verifyResults(double sigma, double minimum, int topScore, int expected, int delta)
public static junit.framework.Test suite()
Copyright © 2002–2014 InfoEther. All rights reserved.