|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jasen.core.AbstractTestResult org.jasen.core.MultiPointTestResult
Returned from a test when the test is intended to contribute to a total number of spam "points".
Once all point based tests are run for a single message, the ultimate probability for these point tests is computed based on the points return and their corresponding weights
A point based test will accrue points during testing such that the higher the number of points scored, the greater the indication of spam.
The MultiPointTestResult differs from the standard PointTestResult in that it allows for multiple thresholds
ProbabilityTestResult
,
PointTestResult
,
Serialized FormConstructor Summary | |
MultiPointTestResult(ProbabilityCalculator calculator)
Constructs a new MultiPointTestResult |
|
MultiPointTestResult(ProbabilityCalculator calculator,
float defaultProbability)
Constructs a new MultiPointTestResult |
Method Summary | |
void |
addPointResult(PointTestResult result)
Adds a single point result to this multi point result |
float |
calculateProbability()
Calculates the final probability for this test result based on the data contained within |
Methods inherited from class org.jasen.core.AbstractTestResult |
isAbsolute, setAbsolute |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiPointTestResult(ProbabilityCalculator calculator)
calculator
- The calculator to use when computing final resultspublic MultiPointTestResult(ProbabilityCalculator calculator, float defaultProbability)
calculator
- The calculator to use when computing final resultsdefaultProbability
- The probability to use in the absence of further informationMethod Detail |
public void addPointResult(PointTestResult result)
result
- A point result with it's value data already populatedpublic float calculateProbability() throws JasenException
JasenTestResult
JasenException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |