Evaluation of Bus Vibration Comfort Based on Passenger Crowdsourcing Mode
Algorithm 1
Filtering algorithm. () The parameter of alpha is calculated by equation: , where is single sampling time of filter and dT is sampling frequency. () The array of values is used to store the values of raw acceleration along -axis, -axis, and -axis, respectively. () The array of gravity is the values of gravity. () The array of linear_acceleration is acceleration without gravity.
(1) public void onSensorChanged(SensorEvent event)