|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.core.AbstractTestResult
org.jasen.core.PointTestResult
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.
A point based test may accrue any number of points such that the number of points is:
0 <= points <= Integer.MAX_VALUE
ProbabilityTestResult
,
Serialized FormConstructor Summary | |
PointTestResult()
|
|
PointTestResult(float min,
float max,
int threshold)
Constructs a new PointTestResult. |
Method Summary | |
void |
addPoint()
Adds a point to the total number in the result. |
float |
calculateProbability()
Calculates the final probability for this test result based on the data contained within |
float |
getMax()
Gets the max probablity allowed. |
float |
getMin()
Gets the min probablity allowed. |
int |
getPoints()
Gets the number of points scored for the test form which this result was returned. |
int |
getThreshold()
Gets the number of point observations which imply max probability. |
void |
setMax(float max)
Sets the max probablity allowed. |
void |
setMin(float min)
Sets the max probablity allowed. |
void |
setPoints(int points)
Sets the number of points as a discrete value. |
void |
setThreshold(int threshold)
Sets the number of point observations which imply max probability. |
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 PointTestResult()
public PointTestResult(float min, float max, int threshold)
min
- The lowest possible probablity.max
- The highest possible probablity.threshold
- The threshold of points at which the max probability is returned.Method Detail |
public int getPoints()
public void setPoints(int points)
points
- public void addPoint()
public float getMax()
public void setMax(float max)
max
- The max to set.public float getMin()
public void setMin(float min)
min
- The min to set.public int getThreshold()
public void setThreshold(int threshold)
threshold
- The threshold to set.public float calculateProbability()
JasenTestResult
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |