Allow thresholds to be decimal values

Not all graphite values are integers, especially after applying a function such as average. Thus changed the conversion from int to float to maintain precision and allow decimal thresholds.