Function to get detect threshold. Prototype float getThreshold() const =0; Returns The detect threshold. The value ranges from 0 to 1.