threshold property

double threshold
final

threshold to avoid jittering

Implementation

final double threshold = 0.2;