Change threshold
This commit is contained in:
parent
7bf6931dbc
commit
61932fcf89
@ -22,7 +22,7 @@ public class FingerprinterTask : IScheduledTask {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar.
|
/// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const double MAXIMUM_DIFFERENCES = 5;
|
private const double MAXIMUM_DIFFERENCES = 3;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maximum time permitted between timestamps before they are considered non-contiguous.
|
/// Maximum time permitted between timestamps before they are considered non-contiguous.
|
||||||
@ -309,7 +309,7 @@ public class FingerprinterTask : IScheduledTask {
|
|||||||
var rhsPosition = i + rightOffset;
|
var rhsPosition = i + rightOffset;
|
||||||
var diff = lhs[lhsPosition] ^ rhs[rhsPosition];
|
var diff = lhs[lhsPosition] ^ rhs[rhsPosition];
|
||||||
|
|
||||||
// If the difference between the samples is small (< 5/32), flag both times as similar.
|
// If the difference between the samples is small, flag both times as similar.
|
||||||
if (countBits(diff) > MAXIMUM_DIFFERENCES)
|
if (countBits(diff) > MAXIMUM_DIFFERENCES)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user