identify_gears_v1

identify_gears_v1(times, velocities, accelerations, motive_powers, on_engine, engine_speeds_out, velocity_speed_ratios, stop_velocity, plateau_acceleration, change_gear_window_width, idle_engine_speed, correct_gear)[source]

Identifies gear time series [-].

Parameters:
  • times (numpy.array) – Time vector [s].
  • velocities (numpy.array) – Velocity vector [km/h].
  • accelerations (numpy.array) – Acceleration vector [m/s2].
  • motive_powers (numpy.array) – Motive power [kW].
  • on_engine (numpy.array) – If the engine is on [-].
  • engine_speeds_out (numpy.array) – Engine speed [RPM].
  • velocity_speed_ratios (dict[int | float]) – Constant velocity speed ratios of the gear box [km/(h*RPM)].
  • stop_velocity (float) – Maximum velocity to consider the vehicle stopped [km/h].
  • plateau_acceleration (float) – Maximum acceleration to be at constant velocity [m/s2].
  • change_gear_window_width (float) – Time window used to apply gear change filters [s].
  • idle_engine_speed ((float, float)) – Engine speed idle median and std [RPM].
  • correct_gear (callable) – A function to correct the gear predicted.
Returns:

Gear vector identified [-].

Return type:

numpy.array