Skip to content

Commit

Permalink
Use percentage of epoch size for detection threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
amrabed committed Jul 4, 2017
1 parent c152190 commit b77f3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/vt/rhids/main/Classifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void test() throws IOException
Logger.signal("ANOMALOUS EPOCH", Verbosity.MEDIUM);
}

if (nMismatches > stats.getTestThreshold())
if ((float) nMismatches / stats.getEpochSize() > stats.getTestThreshold() / 100.0f)
{
Logger.signal("Anomaly signal raised", Verbosity.MEDIUM);
stats.incrementAlarms(isAnomalousEpoch);
Expand Down

0 comments on commit b77f3cd

Please sign in to comment.