Gravar-mail: A decision-based velocity ramp for minimizing the effect of misclassifications during real-time pattern recognition control